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