From 5027f2008badcb8d8056190dac1403335754f202 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 11 Jan 2002 07:24:08 +0000 Subject: Handle setting the search bar to "Advanced..." when the alphabet buttons 2002-01-11 Christopher James Lahey * gui/component/addressbook.c (alphabet_state_changed): Handle setting the search bar to "Advanced..." when the alphabet buttons are pushed and back when they're cleared. Fixes Ximian bug #12904. (addressbook_menu_activated): When the user calls Search->clear, set the search to ESB_ANY and "", don't just set the text. This is especially useful when it's set to ESB_ADVANCED. * gui/widgets/e-addressbook-view.c, gui/widgets/e-addressbook-view.h (alphabet_state_change): Added this signal which gets emitted when the alphabet buttons are pushed. (command_state_change): Removed the ref pair here. It's not necessary. gtk_signal_emit refs the object itself. svn path=/trunk/; revision=15295 --- addressbook/gui/widgets/e-addressbook-view.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'addressbook/gui/widgets/e-addressbook-view.h') diff --git a/addressbook/gui/widgets/e-addressbook-view.h b/addressbook/gui/widgets/e-addressbook-view.h index b3034ef3fd..d338bd9797 100644 --- a/addressbook/gui/widgets/e-addressbook-view.h +++ b/addressbook/gui/widgets/e-addressbook-view.h @@ -26,6 +26,7 @@ #include "e-addressbook-model.h" #include "widgets/menus/gal-view-menus.h" #include "addressbook/backend/ebook/e-book.h" +#include #ifdef __cplusplus extern "C" { @@ -90,9 +91,10 @@ struct _EAddressbookViewClass /* * Signals */ - void (*status_message) (EAddressbookView *view, const gchar *message); - void (*folder_bar_message) (EAddressbookView *view, const gchar *message); - void (*command_state_change) (EAddressbookView *view); + void (*status_message) (EAddressbookView *view, const gchar *message); + void (*folder_bar_message) (EAddressbookView *view, const gchar *message); + void (*command_state_change) (EAddressbookView *view); + void (*alphabet_state_change) (EAddressbookView *view, gunichar letter); }; GtkWidget *e_addressbook_view_new (void); -- cgit v1.2.3