1 #include <gladeui/glade.h>
4 #include "psppire-buttonbox.h"
7 glade_psppire_button_box_post_create (GladeWidgetAdaptor *adaptor,
9 GladeCreateReason reason)
11 GladeWidget *box_widget;
13 PsppireButtonBox *bbox = PSPPIRE_BUTTONBOX (object);
15 g_return_if_fail (PSPPIRE_IS_BUTTONBOX (bbox));
17 box_widget = glade_widget_get_from_gobject (GTK_WIDGET (bbox));
22 if (reason == GLADE_CREATE_USER)
24 /* HIG complient border-width defaults on dialogs */
25 glade_widget_property_set (box_widget, "border-width", 5);
32 glade_psppire_button_box_get_internal_child (GladeWidgetAdaptor *adaptor,
33 PsppireButtonBox *bbox,
37 g_print ("%s\n", __FUNCTION__);
40 return GTK_WIDGET (bbox);
47 glade_psppire_button_box_set_property (GladeWidgetAdaptor *adaptor,
53 g_print ("%s(%p) Type=\"%s\" Id=\"%s\"\n", __FUNCTION__, object,
54 G_OBJECT_TYPE_NAME( object ),
58 GWA_GET_CLASS (GTK_TYPE_WINDOW)->set_property (adaptor, object,
66 glade_psppire_button_box_get_children (GladeWidgetAdaptor *adaptor,
67 PsppireButtonBox *bbox)
71 g_return_val_if_fail (PSPPIRE_IS_BUTTONBOX (bbox), NULL);
73 list = glade_util_container_get_all_children (GTK_CONTAINER (bbox));