i18n: Make recode_substring_pool() always return a pool_malloc()'d string.
[pspp.git] / glade / dictview.c
blob5d23b06d1f42e47effb5c531a148dce063afebfb
1 #include <config.h>
3 #include <glib.h>
4 #include <gtk/gtk.h>
5 #include "psppire-dictview.h"
7 #include <gladeui/glade.h>
10 GType
11 psppire_dict_get_type ()
13 return 0;
18 void
19 glade_psppire_dictview_post_create (GladeWidgetAdaptor *adaptor,
20 GObject *object,
21 GladeCreateReason reason)
23 GladeWidget *widget ;
25 PsppireDictView *dictview = PSPPIRE_DICT_VIEW (object);
27 g_return_if_fail (PSPPIRE_IS_DICT_VIEW (dictview));
29 widget = glade_widget_get_from_gobject (GTK_WIDGET (dictview));
30 if (!widget)
31 return;
33 if (reason == GLADE_CREATE_USER)
35 /* HIG complient border-width defaults on dictviews */
36 glade_widget_property_set (widget, "border-width", 5);
41 GtkWidget *
42 glade_psppire_dictview_get_internal_child (GladeWidgetAdaptor *adaptor,
43 PsppireDictView *dictview,
44 const gchar *name)
46 #if DEBUGGING
47 g_print ("%s\n", __FUNCTION__);
48 #endif
49 return GTK_WIDGET (dictview);
54 void
55 glade_psppire_dictview_set_property (GladeWidgetAdaptor *adaptor,
56 GObject *object,
57 const gchar *id,
58 const GValue *value)
60 #if DEBUGGING
61 g_print ("%s(%p) Type=\"%s\" Id=\"%s\"\n", __FUNCTION__, object,
62 G_OBJECT_TYPE_NAME( object ),
63 id);
64 #endif
66 GWA_GET_CLASS (GTK_TYPE_WINDOW)->set_property (adaptor, object,
67 id, value);
71 GList *
72 glade_psppire_dictview_get_children (GladeWidgetAdaptor *adaptor,
73 PsppireDictView *dv)
75 GList *list = NULL;
77 g_return_val_if_fail (PSPPIRE_IS_DICT_VIEW (dv), NULL);
79 list = glade_util_container_get_all_children (GTK_CONTAINER (dv));
81 return list;