diff --git a/ChangeLog b/ChangeLog index 51dc0ed030..9c37f3f865 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 * src/engine/engine-helpers.c: Make the gnc_scm_to_gint64() diff --git a/src/gnome-search/dialog-search.c b/src/gnome-search/dialog-search.c index d458b69c70..823a0b90ec 100644 --- a/src/gnome-search/dialog-search.c +++ b/src/gnome-search/dialog-search.c @@ -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");