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
1=== modified file 'src/Audience.vala'
2--- src/Audience.vala 2014-11-02 19:13:36 +0000
3+++ src/Audience.vala 2014-12-24 13:32:45 +0000
4@@ -17,6 +17,7 @@
5 *
6 * Authored by: Tom Beckmann <tomjonabc@gmail.com>
7 * Cody Garver <cody@elementaryos.org>
8+ * Artem Anufrij <artem.anufrij@live.de>
9 */
10
11 /*
12@@ -616,12 +617,6 @@
13 if (bottom_bar.child_revealed == false)
14 bottom_bar.set_reveal_child (true);
15
16- if (y >= (window_height - bottom_bar_size) && y < window_height) {
17- bottom_bar.hovered = true;
18- } else {
19- bottom_bar.hovered = false;
20- }
21-
22 return false;
23 }
24
25@@ -854,4 +849,4 @@
26 var app = Audience.App.get_instance ();
27
28 app.run (args);
29-}
30\ No newline at end of file
31+}
32
33=== modified file 'src/Widgets/BottomBar.vala'
34--- src/Widgets/BottomBar.vala 2014-10-31 19:43:35 +0000
35+++ src/Widgets/BottomBar.vala 2014-12-24 13:32:45 +0000
36@@ -16,6 +16,7 @@
37 * along with this program. If not, see <http://www.gnu.org/licenses/>.
38 *
39 * Authored by: Corentin Noël <corentin@elementaryos.org>
40+ * Artem Anufrij <artem.anufrij@live.de>
41 */
42
43 public class Audience.Widgets.BottomBar : Gtk.Revealer {
44@@ -36,6 +37,13 @@
45 private uint hiding_timer = 0;
46
47 public BottomBar () {
48+ this.events |= Gdk.EventMask.POINTER_MOTION_MASK;
49+ this.events |= Gdk.EventMask.LEAVE_NOTIFY_MASK;
50+ this.events |= Gdk.EventMask.ENTER_NOTIFY_MASK;
51+
52+ this.enter_notify_event.connect ((event) => { this.hovered = true; return false; });
53+ this.leave_notify_event.connect ((event) => { this.hovered = false; return false; });
54+
55 transition_type = Gtk.RevealerTransitionType.CROSSFADE;
56 var main_actionbar = new Gtk.ActionBar ();
57 main_actionbar.opacity = GLOBAL_OPACITY;
58@@ -156,4 +164,4 @@
59 return false;
60 });
61 }
62-}
63\ No newline at end of file
64+}
65
66=== modified file 'src/Widgets/TimeWidget.vala'
67--- src/Widgets/TimeWidget.vala 2014-06-30 14:54:30 +0000
68+++ src/Widgets/TimeWidget.vala 2014-12-24 13:32:45 +0000
69@@ -124,4 +124,4 @@
70 progression_label.label = seconds_to_time ((int)(current_time / 1000000000));
71 time_label.label = seconds_to_time ((int)((total_time - current_time) / 1000000000));
72 }
73-}
74\ No newline at end of file
75+}

Subscribers

People subscribed via source and target branches