Merge lp:~parnold-x/wingpanel-indicator-session/shutdown-dialog-transient into lp:~wingpanel-devs/wingpanel-indicator-session/trunk

Proposed by Djax
Status: Merged
Approved by: Danielle Foré
Approved revision: 30
Merged at revision: 30
Proposed branch: lp:~parnold-x/wingpanel-indicator-session/shutdown-dialog-transient
Merge into: lp:~wingpanel-devs/wingpanel-indicator-session/trunk
Diff against target: 34 lines (+6/-4)
2 files modified
src/Indicator.vala (+6/-2)
src/Widgets/EndSessionDialog.vala (+0/-2)
To merge this branch: bzr merge lp:~parnold-x/wingpanel-indicator-session/shutdown-dialog-transient
Reviewer Review Type Date Requested Status
Danielle Foré Approve
Review via email: mp+265710@code.launchpad.net

Commit message

set the shutdown dialog transient to the panel to not show the wingpanel icon in plank

Description of the change

This branch set the shutdown dialog transient to the panel to not show the wingpanel in plank.

To post a comment you must log in.
Revision history for this message
Danielle Foré (danrabbit) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Indicator.vala'
2--- src/Indicator.vala 2015-07-17 19:37:15 +0000
3+++ src/Indicator.vala 2015-07-23 17:44:58 +0000
4@@ -232,12 +232,16 @@
5 });
6
7 log_out.clicked.connect (() => {
8- new Session.Widgets.EndSessionDialog (Session.Widgets.EndSessionDialogType.LOGOUT);
9+ var dialog = new Session.Widgets.EndSessionDialog (Session.Widgets.EndSessionDialogType.LOGOUT);
10+ dialog.set_transient_for (indicator_icon.get_toplevel () as Gtk.Window);
11+ dialog.show_all ();
12 close ();
13 });
14
15 shutdown.clicked.connect (() => {
16- new Session.Widgets.EndSessionDialog (Session.Widgets.EndSessionDialogType.RESTART);
17+ var dialog = new Session.Widgets.EndSessionDialog (Session.Widgets.EndSessionDialogType.RESTART);
18+ dialog.set_transient_for (indicator_icon.get_toplevel () as Gtk.Window);
19+ dialog.show_all ();
20 close ();
21 });
22
23
24=== modified file 'src/Widgets/EndSessionDialog.vala'
25--- src/Widgets/EndSessionDialog.vala 2015-06-20 15:59:22 +0000
26+++ src/Widgets/EndSessionDialog.vala 2015-07-23 17:44:58 +0000
27@@ -133,8 +133,6 @@
28 var action_area = get_action_area ();
29 action_area.margin_right = 6;
30 action_area.margin_bottom = 6;
31-
32- this.show_all ();
33 }
34 }
35

Subscribers

People subscribed via source and target branches

to all changes: