Merge lp:~jaapz-b/switchboard/fix-1082736 into lp:~elementary-pantheon/switchboard/switchboard

Proposed by Jaap Broekhuizen
Status: Merged
Approved by: David Gomes
Approved revision: 351
Merged at revision: 350
Proposed branch: lp:~jaapz-b/switchboard/fix-1082736
Merge into: lp:~elementary-pantheon/switchboard/switchboard
Diff against target: 46 lines (+8/-6)
1 file modified
Switchboard/switchboard-app.vala (+8/-6)
To merge this branch: bzr merge lp:~jaapz-b/switchboard/fix-1082736
Reviewer Review Type Date Requested Status
David Gomes (community) Approve
Review via email: mp+138889@code.launchpad.net
To post a comment you must log in.
lp:~jaapz-b/switchboard/fix-1082736 updated
351. By Jaap Broekhuizen

Code formatting.

Revision history for this message
David Gomes (davidgomes) wrote :

Good job, approved.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Switchboard/switchboard-app.vala'
--- Switchboard/switchboard-app.vala 2012-11-25 19:32:09 +0000
+++ Switchboard/switchboard-app.vala 2012-12-09 19:14:18 +0000
@@ -94,10 +94,14 @@
9494
95 // Set up socket95 // Set up socket
96 socket = new Gtk.Socket ();96 socket = new Gtk.Socket ();
97 socket.plug_removed.connect(switch_to_icons);
98 socket.set_hexpand(true);97 socket.set_hexpand(true);
99 socket.set_vexpand(true);98 socket.set_vexpand(true);
10099
100 socket.plug_removed.connect (() => {
101 plug_closed ();
102 return true;
103 });
104
101 // Set up accelerators (hotkeys)105 // Set up accelerators (hotkeys)
102 var accel_group = new Gtk.AccelGroup ();106 var accel_group = new Gtk.AccelGroup ();
103 uint accel_key;107 uint accel_key;
@@ -242,17 +246,14 @@
242 navigation_button.stock_id = Gtk.Stock.HOME;246 navigation_button.stock_id = Gtk.Stock.HOME;
243 current_plug["title"] = title;247 current_plug["title"] = title;
244 current_plug["executable"] = executable;248 current_plug["executable"] = executable;
249 switch_to_socket ();
250 main_window.title = @"$APP_TITLE - $title";
245 }251 }
246 } catch { warning(_("Failed to launch plug: title %s | executable %s"), title, executable); }252 } catch { warning(_("Failed to launch plug: title %s | executable %s"), title, executable); }
247 } else {253 } else {
248 navigation_button.set_sensitive(true);254 navigation_button.set_sensitive(true);
249 navigation_button.stock_id = Gtk.Stock.HOME;255 navigation_button.stock_id = Gtk.Stock.HOME;
250 }256 }
251
252 if (!@extern) {
253 switch_to_socket ();
254 main_window.title = @"$APP_TITLE - $title";
255 }
256 }257 }
257258
258 // Change Switchboard title back to "Switchboard"259 // Change Switchboard title back to "Switchboard"
@@ -279,6 +280,7 @@
279 search_box.sensitive = false;280 search_box.sensitive = false;
280281
281 category_view.hide ();282 category_view.hide ();
283 socket.hide ();
282 loading.show_all ();284 loading.show_all ();
283 }285 }
284 286

Subscribers

People subscribed via source and target branches

to all changes: