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
1=== modified file 'src/PantheonGreeter.vala'
2--- src/PantheonGreeter.vala 2016-06-18 15:56:05 +0000
3+++ src/PantheonGreeter.vala 2016-06-18 22:57:08 +0000
4@@ -150,7 +150,6 @@
5 stage.add_child (greeterbox);
6
7 add (clutter);
8- show_all ();
9
10 bool activate_numlock = false;
11 try {
12@@ -179,9 +178,6 @@
13 display.force_screensaver (Screensaver.ACTIVE);
14 }
15
16- message ("Finished building UI...");
17- this.get_window ().focus (Gdk.CURRENT_TIME);
18-
19 connect_signals ();
20
21 var select_user = login_gateway.select_user;
22@@ -199,6 +195,11 @@
23 if (userlist.current_user == null) {
24 userlist.current_user = userlist.get_user (0);
25 }
26+
27+ show_all ();
28+
29+ message ("Finished building UI...");
30+ this.get_window ().focus (Gdk.CURRENT_TIME);
31 }
32
33 void connect_signals () {

Subscribers

People subscribed via source and target branches