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