Merge lp:~donadigo/pantheon-greeter/update-before-show into lp:~elementary-pantheon/pantheon-greeter/trunk

Proposed by Adam Bieńkowski
Status: Merged
Approved by: Danielle Foré
Approved revision: 463
Merged at revision: 463
Proposed branch: lp:~donadigo/pantheon-greeter/update-before-show
Merge into: lp:~elementary-pantheon/pantheon-greeter/trunk
Diff against target: 33 lines (+5/-4)
1 file modified
src/PantheonGreeter.vala (+5/-4)
To merge this branch: bzr merge lp:~donadigo/pantheon-greeter/update-before-show
Reviewer Review Type Date Requested Status
elementary Pantheon team Pending
Review via email: mp+297837@code.launchpad.net

Commit message

Call show_all and focus methods at the end of the constructor.

Description of the change

Call show_all and focus methods at the end of the constructor, so the wallpaper and all other widgets can be present instantly, not after a little bit.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/PantheonGreeter.vala'
--- src/PantheonGreeter.vala 2016-06-18 15:56:05 +0000
+++ src/PantheonGreeter.vala 2016-06-18 22:57:08 +0000
@@ -150,7 +150,6 @@
150 stage.add_child (greeterbox);150 stage.add_child (greeterbox);
151151
152 add (clutter);152 add (clutter);
153 show_all ();
154153
155 bool activate_numlock = false;154 bool activate_numlock = false;
156 try {155 try {
@@ -179,9 +178,6 @@
179 display.force_screensaver (Screensaver.ACTIVE);178 display.force_screensaver (Screensaver.ACTIVE);
180 }179 }
181180
182 message ("Finished building UI...");
183 this.get_window ().focus (Gdk.CURRENT_TIME);
184
185 connect_signals ();181 connect_signals ();
186182
187 var select_user = login_gateway.select_user;183 var select_user = login_gateway.select_user;
@@ -199,6 +195,11 @@
199 if (userlist.current_user == null) {195 if (userlist.current_user == null) {
200 userlist.current_user = userlist.get_user (0);196 userlist.current_user = userlist.get_user (0);
201 }197 }
198
199 show_all ();
200
201 message ("Finished building UI...");
202 this.get_window ().focus (Gdk.CURRENT_TIME);
202 }203 }
203204
204 void connect_signals () {205 void connect_signals () {

Subscribers

People subscribed via source and target branches