Fix missing @clicksequence problem with older Texinfo versions.
[pspp-builds.git] / glade / bbox.c
1 #include <gladeui/glade.h>
2 #include <gtk/gtk.h>
3
4 #include "psppire-buttonbox.h"
5
6 void
7 glade_psppire_button_box_post_create (GladeWidgetAdaptor *adaptor,
8                                       GObject            *object,
9                                       GladeCreateReason   reason)
10 {
11   GladeWidget  *box_widget;
12
13   PsppireButtonBox    *bbox = PSPPIRE_BUTTONBOX (object);
14
15   g_return_if_fail (PSPPIRE_IS_BUTTONBOX (bbox));
16
17   box_widget = glade_widget_get_from_gobject (GTK_WIDGET (bbox));
18   if (!box_widget)
19     return;
20
21
22   if (reason == GLADE_CREATE_USER)
23     {
24       /* HIG complient border-width defaults on dialogs */
25       glade_widget_property_set (box_widget, "border-width", 5);
26     }
27
28 }
29
30
31 GtkWidget *
32 glade_psppire_button_box_get_internal_child (GladeWidgetAdaptor  *adaptor,
33                                              PsppireButtonBox    *bbox,
34                                              const gchar         *name)
35 {
36 #if DEBUGGING
37   g_print ("%s\n", __FUNCTION__);
38 #endif
39
40   return GTK_WIDGET (bbox);
41 }
42
43
44
45
46 void
47 glade_psppire_button_box_set_property (GladeWidgetAdaptor *adaptor,
48                                    GObject            *object,
49                                    const gchar        *id,
50                                    const GValue       *value)
51 {
52 #if DEBUGGING
53   g_print ("%s(%p) Type=\"%s\" Id=\"%s\"\n", __FUNCTION__, object,
54            G_OBJECT_TYPE_NAME( object ),
55            id);
56 #endif
57
58   GWA_GET_CLASS (GTK_TYPE_WINDOW)->set_property (adaptor, object,
59                                                  id, value);
60 }
61
62
63
64
65 GList *
66 glade_psppire_button_box_get_children (GladeWidgetAdaptor  *adaptor,
67                                        PsppireButtonBox  *bbox)
68 {
69   GList *list = NULL;
70
71   g_return_val_if_fail (PSPPIRE_IS_BUTTONBOX (bbox), NULL);
72
73   list = glade_util_container_get_all_children (GTK_CONTAINER (bbox));
74
75   return list;
76 }