From 24b3d95db24e6d4cc89d094622339c48b14f3513 Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Wed, 15 Jan 2003 03:59:58 +0000 Subject: [PATCH] * 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 --- ChangeLog | 3 +++ src/gnome-search/dialog-search.c | 6 ++++++ 2 files changed, 9 insertions(+) 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");