[gnome-shell] Remove panel-run-dialog/main-menu handling from shell-global



commit 4749393ab557af5a9f2e6a0346de649e959d584d
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Tue Feb 16 16:46:23 2010 +0100

    Remove panel-run-dialog/main-menu handling from shell-global
    
    This is handled by the shellwm (takeover_keybinding) nowdays.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=610039

 js/ui/main.js      |    5 -----
 src/shell-global.c |   20 --------------------
 src/shell-global.h |    4 ----
 3 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index 635fd8d..aced139 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -99,10 +99,6 @@ function start() {
     let theme = new St.Theme ({ application_stylesheet: stylesheetPath });
     themeContext.set_theme (theme);
 
-    global.connect('panel-run-dialog', function(panel) {
-        // Make sure not more than one run dialog is shown.
-        getRunDialog().open();
-    });
     let shellwm = global.window_manager;
     shellwm.takeover_keybinding("panel_main_menu");
     shellwm.connect("keybinding::panel_main_menu", function () {
@@ -159,7 +155,6 @@ function start() {
 
     let display = global.screen.get_display();
     display.connect('overlay-key', Lang.bind(overview, overview.toggle));
-    global.connect('panel-main-menu', Lang.bind(overview, overview.toggle));
 
     global.stage.connect('captured-event', _globalKeyPressHandler);
 
diff --git a/src/shell-global.c b/src/shell-global.c
index 3b34740..4cf1e38 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -76,8 +76,6 @@ enum {
 /* Signals */
 enum
 {
-  PANEL_RUN_DIALOG,
-  PANEL_MAIN_MENU,
   SCREEN_SIZE_CHANGED,
   LAST_SIGNAL
 };
@@ -206,24 +204,6 @@ shell_global_class_init (ShellGlobalClass *klass)
   gobject_class->get_property = shell_global_get_property;
   gobject_class->set_property = shell_global_set_property;
 
-  shell_global_signals[PANEL_RUN_DIALOG] =
-    g_signal_new ("panel-run-dialog",
-		  G_TYPE_FROM_CLASS (klass),
-		  G_SIGNAL_RUN_LAST,
-		  G_STRUCT_OFFSET (ShellGlobalClass, panel_run_dialog),
-		  NULL, NULL,
-		  g_cclosure_marshal_VOID__INT,
-		  G_TYPE_NONE, 1, G_TYPE_INT);
-
-  shell_global_signals[PANEL_MAIN_MENU] =
-    g_signal_new ("panel-main-menu",
-		  G_TYPE_FROM_CLASS (klass),
-		  G_SIGNAL_RUN_LAST,
-		  G_STRUCT_OFFSET (ShellGlobalClass, panel_main_menu),
-		  NULL, NULL,
-		  g_cclosure_marshal_VOID__INT,
-		  G_TYPE_NONE, 1, G_TYPE_INT);
-
   shell_global_signals[SCREEN_SIZE_CHANGED] =
     g_signal_new ("screen-size-changed",
 		  G_TYPE_FROM_CLASS (klass),
diff --git a/src/shell-global.h b/src/shell-global.h
index cbef2db..702c184 100644
--- a/src/shell-global.h
+++ b/src/shell-global.h
@@ -26,10 +26,6 @@ struct _ShellGlobalClass
 {
   GObjectClass parent_class;
 
-  void (*panel_run_dialog) (ShellGlobal *global,
-			    int      timestamp);
-  void (*panel_main_menu) (ShellGlobal *global,
-			   int      timestamp);
   void (*screen_size_changed) (ShellGlobal *global);
 };
 



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