Run gnome-terminal on alt-f2
svn path=/trunk/; revision=36
This commit is contained in:
@ -8,10 +8,6 @@ struct _ShellGlobal {
|
||||
MutterPlugin *plugin;
|
||||
};
|
||||
|
||||
struct _ShellGlobalClass {
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
enum {
|
||||
PROP_0,
|
||||
|
||||
@ -21,8 +17,18 @@ enum {
|
||||
PROP_STAGE
|
||||
};
|
||||
|
||||
/* Signals */
|
||||
enum
|
||||
{
|
||||
PANEL_RUN_DIALOG,
|
||||
PANEL_MAIN_MENU,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE(ShellGlobal, shell_global, G_TYPE_OBJECT);
|
||||
|
||||
static guint shell_global_signals [LAST_SIGNAL] = { 0 };
|
||||
|
||||
static void
|
||||
shell_global_set_property(GObject *object,
|
||||
guint prop_id,
|
||||
@ -88,6 +94,24 @@ 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);
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_OVERLAY_GROUP,
|
||||
g_param_spec_object ("overlay-group",
|
||||
@ -169,7 +193,7 @@ shell_global_set_stage_input_area (ShellGlobal *global,
|
||||
GList *
|
||||
shell_global_get_windows (ShellGlobal *global)
|
||||
{
|
||||
g_return_if_fail (SHELL_IS_GLOBAL (global));
|
||||
g_return_val_if_fail (SHELL_IS_GLOBAL (global), NULL);
|
||||
|
||||
return mutter_plugin_get_windows (global->plugin);
|
||||
}
|
||||
|
Reference in New Issue
Block a user