* src/gnome-search/dialog-search.c -- grey out the button if it

has no meaning for this particular search-type.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7834 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-01-15 03:59:58 +00:00
parent 198f41ee89
commit 24b3d95db2
2 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,9 @@
* src/gnome-search/dialog-search.c -- add preliminary support to
limit searches to only "active" objects. Fixes bug #103506
* src/gnome-search/dialog-search.c -- grey out the button if it
has no meaning for this particular search-type.
2003-01-13 David Hampton <hampton@employees.org>
* src/engine/engine-helpers.c: Make the gnc_scm_to_gint64()

View File

@ -877,6 +877,12 @@ gnc_search_dialog_init_widgets (GNCSearchWindow *sw)
"search_for_active_only",
TRUE));
/* Figure out if we this object-type has an "active" parameter, and
* if not, then set the active-check button insensitive
*/
if (gncQueryObjectGetParameter (sw->search_for, QUERY_PARAM_ACTIVE) == NULL)
gtk_widget_set_sensitive (sw->active_only_check, FALSE);
/* Deal with the cancel button */
sw->cancel_button = glade_xml_get_widget (xml, "cancel_button");
sw->close_button = glade_xml_get_widget (xml, "close_button");