[gnome-control-center/gnome-3-10] application: activate application when launching a panel



commit fbe9bd1fd40e9a39425df1cd2482f1690811d901
Author: Cosimo Cecchi <cosimo endlessm com>
Date:   Fri Jan 10 15:45:07 2014 -0800

    application: activate application when launching a panel
    
    This ensures the control-center window is correctly presented if the
    application is already running when the action is activated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721969

 shell/cc-application.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/cc-application.c b/shell/cc-application.c
index 7a21086..06d9110 100644
--- a/shell/cc-application.c
+++ b/shell/cc-application.c
@@ -116,6 +116,9 @@ launch_panel_activated (GSimpleAction *action,
       g_error_free (error);
     }
   g_variant_unref (parameters);
+
+  /* Now present the window */
+  g_application_activate (G_APPLICATION (self));
 }
 
 static int


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]