store intercept in proper place when using QR method
[pspp-builds.git] / src / ui / gui / glade-register.c
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2007  Free Software Foundation
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
17
18 #include <config.h>
19
20 #include <string.h>
21
22 #include <glade/glade-build.h>
23 #include "psppire-dialog.h"
24 #include "psppire-selector.h"
25 #include "psppire-acr.h"
26 #include "psppire-keypad.h"
27 #include "psppire-hbuttonbox.h"
28 #include "psppire-vbuttonbox.h"
29
30 GLADE_MODULE_CHECK_INIT
31
32 /* Glade registration functions for PSPPIRE custom widgets */
33
34 static GtkWidget *
35 dialog_find_internal_child (GladeXML *xml,
36                             GtkWidget *parent,
37                             const gchar *childname)
38 {
39   if (!strcmp(childname, "hbox"))
40     return PSPPIRE_DIALOG (parent)->box;
41
42   return NULL;
43 }
44
45 void
46 glade_module_register_widgets (void)
47 {
48   glade_register_widget (PSPPIRE_DIALOG_TYPE, NULL,
49                          glade_standard_build_children,
50                          dialog_find_internal_child);
51
52
53   glade_register_widget (PSPPIRE_VBUTTON_BOX_TYPE, NULL,
54                          glade_standard_build_children,
55                          NULL);
56
57   glade_register_widget (PSPPIRE_HBUTTON_BOX_TYPE, NULL,
58                          glade_standard_build_children,
59                          NULL);
60
61   glade_register_widget (PSPPIRE_SELECTOR_TYPE, NULL,
62                          glade_standard_build_children,
63                          NULL);
64
65   glade_register_widget (PSPPIRE_KEYPAD_TYPE, NULL,
66                          glade_standard_build_children,
67                          NULL);
68
69   glade_register_widget (PSPPIRE_ACR_TYPE, NULL,
70                          glade_standard_build_children,
71                          NULL);
72 }
73
74
75