diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-05-31 19:12:13 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-05-31 19:12:13 -0400 |
commit | 8143ce69ebac8bd280aba264a3a7057c876867c8 (patch) | |
tree | e53ab983a54176d06b66a8cabff0ac049425770f /gtk/gtkapplication.h | |
parent | 75390b2d602ca73156190350b9b62a8f870c801d (diff) | |
download | gtk+-8143ce69ebac8bd280aba264a3a7057c876867c8.tar.gz |
GtkApplication: Add window-added/-removed signals
This is useful to let unrelated parts of an application (or
plugins) learn about the windows of an application. Based
on a patch by Matt Barnes,
https://bugzilla.gnome.org/show_bug.cgi?id=641087
Diffstat (limited to 'gtk/gtkapplication.h')
-rw-r--r-- | gtk/gtkapplication.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkapplication.h b/gtk/gtkapplication.h index c915e2dc86..6caa4081a9 100644 --- a/gtk/gtkapplication.h +++ b/gtk/gtkapplication.h @@ -55,8 +55,13 @@ struct _GtkApplicationClass { GApplicationClass parent_class; + void (*window_added) (GtkApplication *application, + GtkWindow *window); + void (*window_removed) (GtkApplication *application, + GtkWindow *window); + /*< private >*/ - gpointer padding[16]; + gpointer padding[14]; }; GType gtk_application_get_type (void) G_GNUC_CONST; |