Converted the correlations dialog to a PsppireDialogAction object
[pspp-builds.git] / glade / acr.c
1 #include <glib.h>
2 #include <gtk/gtk.h>
3
4 #include "psppire-acr.h"
5
6 #include <gladeui/glade.h>
7
8
9 void
10 glade_psppire_acr_post_create (GladeWidgetAdaptor *adaptor,
11                                     GObject            *object,
12                                     GladeCreateReason   reason)
13 {
14   GladeWidget *widget ;
15
16   PsppireAcr *acr = PSPPIRE_ACR (object);
17
18   g_return_if_fail (PSPPIRE_IS_ACR (acr));
19
20   widget = glade_widget_get_from_gobject (GTK_WIDGET (acr));
21   if (!widget)
22     return;
23
24   if (reason == GLADE_CREATE_USER)
25     {
26       /* HIG complient border-width defaults on acrs */
27       glade_widget_property_set (widget, "border-width", 5);
28     }
29 }
30
31
32 GtkWidget *
33 glade_psppire_acr_get_internal_child (GladeWidgetAdaptor  *adaptor,
34                                          PsppireAcr       *acr,
35                                          const gchar         *name)
36 {
37 #if DEBUGGING
38   g_print ("%s\n", __FUNCTION__);
39 #endif
40   return GTK_WIDGET (acr);
41 }
42
43
44
45 void
46 glade_psppire_acr_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_acr_get_children (GladeWidgetAdaptor  *adaptor,
65                                    PsppireAcr  *acr)
66 {
67   GList *list = NULL;
68
69   g_return_val_if_fail (PSPPIRE_IS_ACR (acr), NULL);
70
71   list = glade_util_container_get_all_children (GTK_CONTAINER (acr));
72
73   return list;
74 }