output: Add support for captions.
[pspp.git] / glade / selector.c
blob6b2e4d7938c0bcb6e82c47a1fdfe24a6fd000334
1 #include <config.h>
2 #include <glib.h>
3 #include <gtk/gtk.h>
5 #include "psppire-selector.h"
7 #include <gladeui/glade.h>
10 void
11 glade_psppire_selector_post_create (GladeWidgetAdaptor *adaptor,
12 GObject *object,
13 GladeCreateReason reason)
15 GladeWidget *widget ;
17 PsppireSelector *selector = PSPPIRE_SELECTOR (object);
19 g_return_if_fail (PSPPIRE_IS_SELECTOR (selector));
21 widget = glade_widget_get_from_gobject (GTK_WIDGET (selector));
22 if (!widget)
23 return;
25 if (reason == GLADE_CREATE_USER)
27 /* HIG complient border-width defaults on selectors */
28 glade_widget_property_set (widget, "border-width", 5);
33 GtkWidget *
34 glade_psppire_selector_get_internal_child (GladeWidgetAdaptor *adaptor,
35 PsppireSelector *selector,
36 const gchar *name)
38 #if DEBUGGING
39 g_print ("%s\n", __FUNCTION__);
40 #endif
41 return GTK_WIDGET (selector);
46 void
47 glade_psppire_selector_set_property (GladeWidgetAdaptor *adaptor,
48 GObject *object,
49 const gchar *id,
50 const GValue *value)
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
58 GWA_GET_CLASS (GTK_TYPE_WINDOW)->set_property (adaptor, object,
59 id, value);
64 GList *
65 glade_psppire_selector_get_children (GladeWidgetAdaptor *adaptor,
66 PsppireSelector *selector)
68 GList *list = NULL;
70 g_return_val_if_fail (PSPPIRE_IS_SELECTOR (selector), NULL);
72 list = glade_util_container_get_all_children (GTK_CONTAINER (selector));
74 return list;