summaryrefslogtreecommitdiff
path: root/gtk/gtkapplication.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-05-31 19:12:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-05-31 19:12:13 -0400
commit8143ce69ebac8bd280aba264a3a7057c876867c8 (patch)
treee53ab983a54176d06b66a8cabff0ac049425770f /gtk/gtkapplication.h
parent75390b2d602ca73156190350b9b62a8f870c801d (diff)
downloadgtk+-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.h7
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;