From bac73e48db57f85e4f19ea5f9b3d9669db10686c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 18 Dec 2011 12:55:41 +0100 Subject: 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. --- gtk/gtkaccessible.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkaccessible.h') 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); }; -- cgit v1.2.1