pivot table procedure conceptually works
[pspp] / glade / selector.c
1 #include <config.h>
2 #include <glib.h>
3 #include <gtk/gtk.h>
4
5 #include "psppire-selector.h"
6
7 #include <gladeui/glade.h>
8
9
10 void
11 glade_psppire_selector_post_create (GladeWidgetAdaptor *adaptor,
12                                     GObject            *object,
13                                     GladeCreateReason   reason)
14 {
15   GladeWidget *widget ;
16
17   PsppireSelector *selector = PSPPIRE_SELECTOR (object);
18
19   g_return_if_fail (PSPPIRE_IS_SELECTOR (selector));
20
21   widget = glade_widget_get_from_gobject (GTK_WIDGET (selector));
22   if (!widget)
23     return;
24
25   if (reason == GLADE_CREATE_USER)
26     {
27       /* HIG complient border-width defaults on selectors */
28       glade_widget_property_set (widget, "border-width", 5);
29     }
30 }
31
32
33 GtkWidget *
34 glade_psppire_selector_get_internal_child (GladeWidgetAdaptor  *adaptor,
35                                          PsppireSelector       *selector,
36                                          const gchar         *name)
37 {
38 #if DEBUGGING
39   g_print ("%s\n", __FUNCTION__);
40 #endif
41   return GTK_WIDGET (selector);
42 }
43
44
45
46 void
47 glade_psppire_selector_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 GList *
65 glade_psppire_selector_get_children (GladeWidgetAdaptor  *adaptor,
66                                    PsppireSelector  *selector)
67 {
68   GList *list = NULL;
69
70   g_return_val_if_fail (PSPPIRE_IS_SELECTOR (selector), NULL);
71
72   list = glade_util_container_get_all_children (GTK_CONTAINER (selector));
73
74   return list;
75 }