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
This commit is contained in:
David Hampton 2005-11-26 03:03:47 +00:00
parent 40ee07bb7d
commit 5f85820cd7
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2005-11-25 David Hampton <hampton@employees.org>
* 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.

View File

@ -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;
}