Fix bugID# 85995. Get invoice and search-dialog windows to appear

proper size by delaying the "show_all" on the dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7000 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2002-06-23 00:02:35 +00:00
parent b4a361c082
commit 7060f342cd
3 changed files with 5 additions and 3 deletions

View File

@ -420,6 +420,7 @@
<widget>
<class>GnomeApp</class>
<name>Invoice Entry Window</name>
<visible>False</visible>
<title>Invoice</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>

View File

@ -821,6 +821,9 @@ gnc_search_dialog_init_widgets (GNCSearchWindow *sw)
gtk_label_set_text (GTK_LABEL (GTK_BIN (new_item_button)->child), desc);
g_free (desc);
}
/* add the first criterion */
gnc_search_dialog_add_criterion (sw);
/* show it all */
gtk_widget_show_all (sw->dialog);
@ -828,9 +831,6 @@ gnc_search_dialog_init_widgets (GNCSearchWindow *sw)
if (!sw->new_item_cb)
gtk_widget_hide_all (new_item_button);
/* add the first criterion */
gnc_search_dialog_add_criterion (sw);
/* Connect XML signals */
glade_xml_signal_connect_data (xml, "gnc_ui_search_type_cb",

View File

@ -19,6 +19,7 @@
<widget>
<class>GnomeDialog</class>
<name>Search Dialog</name>
<visible>False</visible>
<title>Search for...</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>