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

Proposed by Jaap Broekhuizen
Status: Merged
Merged at revision: 338
Proposed branch: lp:~jaapz-b/switchboard/fix-1079368
Merge into: lp:~elementary-pantheon/switchboard/switchboard
Diff against target: 27 lines (+8/-2)
1 file modified
Switchboard/switchboard-app.vala (+8/-2)
To merge this branch: bzr merge lp:~jaapz-b/switchboard/fix-1079368
Reviewer Review Type Date Requested Status
David Gomes (community) Approve
Review via email: mp+134804@code.launchpad.net

Description of the change

When application is already running, but launched again, it now presents the window of the already running instance.

To post a comment you must log in.
lp:~jaapz-b/switchboard/fix-1079368 updated
339. By Jaap Broekhuizen

Reverted another change i made...

340. By Jaap Broekhuizen

Fix tab.

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

Good job.

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-10-14 12:52:23 +0000
+++ Switchboard/switchboard-app.vala 2012-11-18 13:30:25 +0000
@@ -504,7 +504,13 @@
504 }504 }
505 505
506 public override void activate () {506 public override void activate () {
507 build ();507 // If app is already running, present the current window.
508 if (get_windows () != null) {
509 get_windows ().data.present ();
510 return;
511 }
512
513 build ();
508 }514 }
509 }515 }
510516
@@ -534,7 +540,7 @@
534 // In the future, the plug_root_dir should be overridable by CLI flags.540 // In the future, the plug_root_dir should be overridable by CLI flags.
535 var switchboard_app = new SwitchboardApp ();541 var switchboard_app = new SwitchboardApp ();
536 542
537 Bus.own_name (BusType.SESSION, "org.elementary.switchboard",543 GLib.Bus.own_name (BusType.SESSION, "org.elementary.switchboard",
538 BusNameOwnerFlags.NONE,544 BusNameOwnerFlags.NONE,
539 (conn) => { 545 (conn) => {
540 try {546 try {

Subscribers

People subscribed via source and target branches

to all changes: