summaryrefslogtreecommitdiff
path: root/gtk/gtkaccessible.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-12-18 12:55:41 +0100
committerBenjamin Otte <otte@redhat.com>2011-12-19 16:17:12 +0100
commitbac73e48db57f85e4f19ea5f9b3d9669db10686c (patch)
treee22cfdb99ee52e2cbaca9fc60d1977c1293851a0 /gtk/gtkaccessible.h
parent50431be274dbc969fb03d6c4b1cbc62bffeacac7 (diff)
downloadgtk+-bac73e48db57f85e4f19ea5f9b3d9669db10686c.tar.gz
API: accessible: Add widget_set and widget_unset vfuncs
I expect them to be used a lot, so this approach seems better than requiring signals that connect to "notify::widget". Also, we can't use regular functions (like dispose or constructed), becaiuse those assume that (un)setting of the widget only happens once and with the current design (a puble set_widget() function) we can't really guarantee that. Also, I split them into two separate functions as one function is part of construction and the other part of destruction of the object. And it doesn't sound like a good idea to have that both be part of one function.
Diffstat (limited to 'gtk/gtkaccessible.h')
-rw-r--r--gtk/gtkaccessible.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkaccessible.h b/gtk/gtkaccessible.h
index 04d213a3a3..296186ca2b 100644
--- a/gtk/gtkaccessible.h
+++ b/gtk/gtkaccessible.h
@@ -54,9 +54,9 @@ struct _GtkAccessibleClass
void (*connect_widget_destroyed) (GtkAccessible *accessible);
+ void (*widget_set) (GtkAccessible *accessible);
+ void (*widget_unset) (GtkAccessible *accessible);
/* Padding for future expansion */
- void (*_gtk_reserved1) (void);
- void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
};