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
This commit is contained in:
parent
975603d608
commit
4749393ab5
@ -99,10 +99,6 @@ function start() {
|
|||||||
let theme = new St.Theme ({ application_stylesheet: stylesheetPath });
|
let theme = new St.Theme ({ application_stylesheet: stylesheetPath });
|
||||||
themeContext.set_theme (theme);
|
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;
|
let shellwm = global.window_manager;
|
||||||
shellwm.takeover_keybinding("panel_main_menu");
|
shellwm.takeover_keybinding("panel_main_menu");
|
||||||
shellwm.connect("keybinding::panel_main_menu", function () {
|
shellwm.connect("keybinding::panel_main_menu", function () {
|
||||||
@ -159,7 +155,6 @@ function start() {
|
|||||||
|
|
||||||
let display = global.screen.get_display();
|
let display = global.screen.get_display();
|
||||||
display.connect('overlay-key', Lang.bind(overview, overview.toggle));
|
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);
|
global.stage.connect('captured-event', _globalKeyPressHandler);
|
||||||
|
|
||||||
|
@ -76,8 +76,6 @@ enum {
|
|||||||
/* Signals */
|
/* Signals */
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PANEL_RUN_DIALOG,
|
|
||||||
PANEL_MAIN_MENU,
|
|
||||||
SCREEN_SIZE_CHANGED,
|
SCREEN_SIZE_CHANGED,
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
@ -206,24 +204,6 @@ shell_global_class_init (ShellGlobalClass *klass)
|
|||||||
gobject_class->get_property = shell_global_get_property;
|
gobject_class->get_property = shell_global_get_property;
|
||||||
gobject_class->set_property = shell_global_set_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] =
|
shell_global_signals[SCREEN_SIZE_CHANGED] =
|
||||||
g_signal_new ("screen-size-changed",
|
g_signal_new ("screen-size-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
|
@ -26,10 +26,6 @@ struct _ShellGlobalClass
|
|||||||
{
|
{
|
||||||
GObjectClass parent_class;
|
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);
|
void (*screen_size_changed) (ShellGlobal *global);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user