Merge lp:~artem-anufrij/audience/Bugfix-1395265 into lp:~audience-members/audience/trunk

Proposed by Artem Anufrij
Status: Merged
Approved by: Avi Romanoff
Approved revision: 468
Merged at revision: 477
Proposed branch: lp:~artem-anufrij/audience/Bugfix-1395265
Merge into: lp:~audience-members/audience/trunk
Diff against target: 75 lines (+12/-9)
3 files modified
src/Audience.vala (+2/-7)
src/Widgets/BottomBar.vala (+9/-1)
src/Widgets/TimeWidget.vala (+1/-1)
To merge this branch: bzr merge lp:~artem-anufrij/audience/Bugfix-1395265
Reviewer Review Type Date Requested Status
Avi Romanoff (community) Approve
Artem Anufrij behavior Pending
Danielle Foré Pending
Raphael Isemann Pending
Review via email: mp+245361@code.launchpad.net

This proposal supersedes a proposal from 2014-12-01.

Commit message

The bottom bar stays open on mouseover.

Description of the change

The bottom bar stays open on mouseover.

To post a comment you must log in.
Revision history for this message
Raphael Isemann (teemperor) wrote : Posted in a previous version of this proposal

One problem:

When you see the preview and the move the mouse to a part of the bottom bar that is not the Gtk.Scale, the bottom bar closes.

Example: If you move the mouse over the Gtk.Scale and then move it to the left to the play/stop-button, the bottom bar will disappear after a few seconds.

If you move from the the middle of the window to the play/stop-button (without waiting on the Gtk.Scale first) it works.

review: Needs Fixing
Revision history for this message
Artem Anufrij (artem-anufrij) wrote : Posted in a previous version of this proposal

Thanks for your Feedback! I will fix it.

Revision history for this message
Artem Anufrij (artem-anufrij) wrote : Posted in a previous version of this proposal

@Raphael:

Could you review it again?

Revision history for this message
Danielle Foré (danrabbit) wrote : Posted in a previous version of this proposal

It seems like with this branch the UI will only hide once. If I reveal the UI, it will not hide again.

review: Needs Fixing
Revision history for this message
Artem Anufrij (artem-anufrij) wrote : Posted in a previous version of this proposal

Hey Dan,

see my screencast:

https://bugs.launchpad.net/audience/+bug/1395265/+attachment/4274205/+files/Screencast%202014-12-04%2023%3A28%3A56.mp4

It works perfect on my system...

Can you post exactly steps, please?

review: Needs Information (behavior)
Revision history for this message
Artem Anufrij (artem-anufrij) wrote : Posted in a previous version of this proposal

Dan? ^

Revision history for this message
Avi Romanoff (aroman) wrote :

This works on my machine! Nice work :-)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/Audience.vala'
--- src/Audience.vala 2014-11-02 19:13:36 +0000
+++ src/Audience.vala 2014-12-24 13:32:45 +0000
@@ -17,6 +17,7 @@
17 *17 *
18 * Authored by: Tom Beckmann <tomjonabc@gmail.com>18 * Authored by: Tom Beckmann <tomjonabc@gmail.com>
19 * Cody Garver <cody@elementaryos.org>19 * Cody Garver <cody@elementaryos.org>
20 * Artem Anufrij <artem.anufrij@live.de>
20 */21 */
2122
22/*23/*
@@ -616,12 +617,6 @@
616 if (bottom_bar.child_revealed == false)617 if (bottom_bar.child_revealed == false)
617 bottom_bar.set_reveal_child (true);618 bottom_bar.set_reveal_child (true);
618619
619 if (y >= (window_height - bottom_bar_size) && y < window_height) {
620 bottom_bar.hovered = true;
621 } else {
622 bottom_bar.hovered = false;
623 }
624
625 return false;620 return false;
626 }621 }
627622
@@ -854,4 +849,4 @@
854 var app = Audience.App.get_instance ();849 var app = Audience.App.get_instance ();
855850
856 app.run (args);851 app.run (args);
857}
858\ No newline at end of file852\ No newline at end of file
853}
859854
=== modified file 'src/Widgets/BottomBar.vala'
--- src/Widgets/BottomBar.vala 2014-10-31 19:43:35 +0000
+++ src/Widgets/BottomBar.vala 2014-12-24 13:32:45 +0000
@@ -16,6 +16,7 @@
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *17 *
18 * Authored by: Corentin Noël <corentin@elementaryos.org>18 * Authored by: Corentin Noël <corentin@elementaryos.org>
19 * Artem Anufrij <artem.anufrij@live.de>
19 */20 */
2021
21public class Audience.Widgets.BottomBar : Gtk.Revealer {22public class Audience.Widgets.BottomBar : Gtk.Revealer {
@@ -36,6 +37,13 @@
36 private uint hiding_timer = 0;37 private uint hiding_timer = 0;
3738
38 public BottomBar () {39 public BottomBar () {
40 this.events |= Gdk.EventMask.POINTER_MOTION_MASK;
41 this.events |= Gdk.EventMask.LEAVE_NOTIFY_MASK;
42 this.events |= Gdk.EventMask.ENTER_NOTIFY_MASK;
43
44 this.enter_notify_event.connect ((event) => { this.hovered = true; return false; });
45 this.leave_notify_event.connect ((event) => { this.hovered = false; return false; });
46
39 transition_type = Gtk.RevealerTransitionType.CROSSFADE;47 transition_type = Gtk.RevealerTransitionType.CROSSFADE;
40 var main_actionbar = new Gtk.ActionBar ();48 var main_actionbar = new Gtk.ActionBar ();
41 main_actionbar.opacity = GLOBAL_OPACITY;49 main_actionbar.opacity = GLOBAL_OPACITY;
@@ -156,4 +164,4 @@
156 return false;164 return false;
157 });165 });
158 }166 }
159}
160\ No newline at end of file167\ No newline at end of file
168}
161169
=== modified file 'src/Widgets/TimeWidget.vala'
--- src/Widgets/TimeWidget.vala 2014-06-30 14:54:30 +0000
+++ src/Widgets/TimeWidget.vala 2014-12-24 13:32:45 +0000
@@ -124,4 +124,4 @@
124 progression_label.label = seconds_to_time ((int)(current_time / 1000000000));124 progression_label.label = seconds_to_time ((int)(current_time / 1000000000));
125 time_label.label = seconds_to_time ((int)((total_time - current_time) / 1000000000));125 time_label.label = seconds_to_time ((int)((total_time - current_time) / 1000000000));
126 }126 }
127}
128\ No newline at end of file127\ No newline at end of file
128}

Subscribers

People subscribed via source and target branches