2 #include <gladeui/glade.h>
5 #include "psppire-buttonbox.h"
8 glade_psppire_button_box_post_create (GladeWidgetAdaptor *adaptor,
10 GladeCreateReason reason)
12 GladeWidget *box_widget;
14 PsppireButtonBox *bbox = PSPPIRE_BUTTONBOX (object);
16 g_return_if_fail (PSPPIRE_IS_BUTTONBOX (bbox));
18 box_widget = glade_widget_get_from_gobject (GTK_WIDGET (bbox));
23 if (reason == GLADE_CREATE_USER)
25 /* HIG complient border-width defaults on dialogs */
26 glade_widget_property_set (box_widget, "border-width", 5);
33 glade_psppire_button_box_get_internal_child (GladeWidgetAdaptor *adaptor,
34 PsppireButtonBox *bbox,
38 g_print ("%s\n", __FUNCTION__);
41 return GTK_WIDGET (bbox);
48 glade_psppire_button_box_set_property (GladeWidgetAdaptor *adaptor,
54 g_print ("%s(%p) Type=\"%s\" Id=\"%s\"\n", __FUNCTION__, object,
55 G_OBJECT_TYPE_NAME( object ),
59 GWA_GET_CLASS (GTK_TYPE_WINDOW)->set_property (adaptor, object,
67 glade_psppire_button_box_get_children (GladeWidgetAdaptor *adaptor,
68 PsppireButtonBox *bbox)
72 g_return_val_if_fail (PSPPIRE_IS_BUTTONBOX (bbox), NULL);
74 list = glade_util_container_get_all_children (GTK_CONTAINER (bbox));