projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
psppire-window: Avoid doubled separator in Windows menu.
[pspp]
/
glade
/
dialog.c
diff --git
a/glade/dialog.c
b/glade/dialog.c
index ab38c706e57715de5b7cdb7bce516face99658b0..7b13226e01d25203fb748119f61360d25014c7ae 100644
(file)
--- a/
glade/dialog.c
+++ b/
glade/dialog.c
@@
-1,12
+1,14
@@
+#include <config.h>
#include <glib.h>
#include <gtk/gtk.h>
#include "psppire-dialog.h"
#include <glib.h>
#include <gtk/gtk.h>
#include "psppire-dialog.h"
+#include <string.h>
+#include <assert.h>
+#include <gladeui/glade.h>
-#include <glade-gtk.h>
-
-void GLADEGTK_API
+void
glade_psppire_dialog_post_create (GladeWidgetAdaptor *adaptor,
GObject *object,
GladeCreateReason reason)
glade_psppire_dialog_post_create (GladeWidgetAdaptor *adaptor,
GObject *object,
GladeCreateReason reason)
@@
-26,7
+28,7
@@
glade_psppire_dialog_post_create (GladeWidgetAdaptor *adaptor,
if (reason == GLADE_CREATE_USER)
{
if (reason == GLADE_CREATE_USER)
{
- /* HIG compli
e
nt border-width defaults on dialogs */
+ /* HIG compli
a
nt border-width defaults on dialogs */
glade_widget_property_set (widget, "border-width", 5);
}
glade_widget_property_set (widget, "border-width", 5);
}
@@
-44,17
+46,12
@@
glade_psppire_dialog_post_create (GladeWidgetAdaptor *adaptor,
if (reason == GLADE_CREATE_USER)
{
if (reason == GLADE_CREATE_USER)
{
- /* HIG compli
e
nt spacing defaults on dialogs */
+ /* HIG compli
a
nt spacing defaults on dialogs */
glade_widget_property_set (box_widget, "spacing", 2);
glade_widget_property_set (box_widget, "size", 2);
}
glade_widget_property_set (box_widget, "spacing", 2);
glade_widget_property_set (box_widget, "size", 2);
}
-
-
- /* set a reasonable default size for a dialog */
- gtk_window_set_default_size (GTK_WINDOW (dialog), 320, 260);
-
}
}
@@
-86,6
+83,8
@@
glade_psppire_dialog_set_property (GladeWidgetAdaptor *adaptor,
id);
#endif
id);
#endif
+ assert ( GWA_GET_CLASS (GTK_TYPE_WINDOW)->set_property );
+
GWA_GET_CLASS (GTK_TYPE_WINDOW)->set_property (adaptor, object,
id, value);
}
GWA_GET_CLASS (GTK_TYPE_WINDOW)->set_property (adaptor, object,
id, value);
}