From 5f85820cd7099851b247783a1adda152336b6834 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Sat, 26 Nov 2005 03:03:47 +0000 Subject: [PATCH] Show widget by default when its created for a glade dialog. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12032 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 3 +++ src/gnome-utils/gnc-date-edit.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 525cdcaf3f..f874ca71f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-11-25 David Hampton + * src/gnome-utils/gnc-date-edit.c: Show widget by default when its + created for a glade dialog. + * src/gnome-utils/gnc-file.c: Shouldn't still be calling the old save state functions. diff --git a/src/gnome-utils/gnc-date-edit.c b/src/gnome-utils/gnc-date-edit.c index 57d89d9b1b..cff86e279f 100644 --- a/src/gnome-utils/gnc-date-edit.c +++ b/src/gnome-utils/gnc-date-edit.c @@ -745,8 +745,12 @@ gnc_date_edit_new_glade (gchar *widget_name, gchar *string1, gchar *string2, gint int1, gint int2) { + GtkWidget *widget; + /* None of the standard glade arguments are used. */ - return gnc_date_edit_new(time(NULL), FALSE, FALSE); + widget = gnc_date_edit_new(time(NULL), FALSE, FALSE); + gtk_widget_show(widget); + return widget; }