MetaWindow::raised signal.

This commit is contained in:
Tomas Frydrych 2009-02-02 14:08:46 +00:00
parent e17377d407
commit 1e17ba1768
2 changed files with 13 additions and 0 deletions

View File

@ -370,6 +370,7 @@ struct _MetaWindowClass
void (*workspace_changed) (MetaWindow *window, int old_workspace);
void (*focus) (MetaWindow *window);
void (*raised) (MetaWindow *window);
};
/* These differ from window->has_foo_func in that they consider

View File

@ -146,6 +146,7 @@ enum
{
WORKSPACE_CHANGED,
FOCUS,
RAISED,
LAST_SIGNAL
};
@ -266,6 +267,15 @@ meta_window_class_init (MetaWindowClass *klass)
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
window_signals[RAISED] =
g_signal_new ("raised",
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (MetaWindowClass, raised),
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
}
static void
@ -4757,6 +4767,8 @@ meta_window_raise (MetaWindow *window)
*/
if (window != ancestor)
meta_stack_raise (window->screen->stack, window);
g_signal_emit (window, window_signals[RAISED], 0);
}
void