mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make search and tax info dialogs invisible at the top-most level.
On the one hand this avoids nasty redraws, so that the user need not watch the dialogs getting filled by widgets. On the other, on Windows because of #436721, dialogs are not redrawn correctly after a gtk_window_resize(), rendering at least these two dialog partly unusable without a full redraw. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16078 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
23c1d1a598
commit
03ccfc502e
@ -849,6 +849,9 @@ gnc_search_dialog_init_widgets (GNCSearchWindow *sw, const gchar *title)
|
||||
/* show it all */
|
||||
gtk_widget_show_all (sw->dialog);
|
||||
|
||||
/* hide the dialog */
|
||||
gtk_widget_hide (sw->dialog);
|
||||
|
||||
/* Hide the 'new' button if there is no new_item_cb */
|
||||
if (!sw->new_item_cb)
|
||||
gtk_widget_hide_all (new_item_button);
|
||||
@ -950,6 +953,7 @@ gnc_search_dialog_create (GNCIdTypeConst obj_type, const gchar *title,
|
||||
gnc_search_dialog_init_widgets (sw, title);
|
||||
if (sw->gconf_section)
|
||||
gnc_restore_window_size(sw->gconf_section, GTK_WINDOW(sw->dialog));
|
||||
gtk_widget_show(sw->dialog);
|
||||
|
||||
/* Maybe display the original query results? */
|
||||
if (callbacks && show_start_query) {
|
||||
|
@ -5,6 +5,7 @@
|
||||
<requires lib="gnome"/>
|
||||
|
||||
<widget class="GtkDialog" id="Search Dialog">
|
||||
<property name="visible">False</property>
|
||||
<property name="title"></property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<requires lib="gnome"/>
|
||||
|
||||
<widget class="GtkDialog" id="Tax Information Dialog">
|
||||
<property name="visible">True</property>
|
||||
<property name="visible">False</property>
|
||||
<property name="title" translatable="yes">Tax Information</property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||
|
Loading…
Reference in New Issue
Block a user