projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed memory leak in FACTOR
[pspp]
/
glade
/
dialog.c
diff --git
a/glade/dialog.c
b/glade/dialog.c
index ab38c706e57715de5b7cdb7bce516face99658b0..09330bd787955de63a4c5ccff9bce47321e716e7 100644
(file)
--- a/
glade/dialog.c
+++ b/
glade/dialog.c
@@
-2,11
+2,12
@@
#include <gtk/gtk.h>
#include "psppire-dialog.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
+27,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
+45,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
+82,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);
}