From a703c61b47151e7b6897fa657bc22be6e8526c3a Mon Sep 17 00:00:00 2001 From: Gediminas Paulauskas Date: Mon, 7 May 2001 17:33:31 +0000 Subject: use define from widgets/misc/e-filter-bar.h instead of own enumeration and 2001-05-07 Gediminas Paulauskas * gui/component/addressbook.c: use define from widgets/misc/e-filter-bar.h instead of own enumeration and search menu names. * gui/component/Makefile.am, gui/component/select-names/Makefile.am: removed EVOLUTION_VERSION. 2001-05-07 Gediminas Paulauskas * gui/event-editor.c (make_title_from_comp): conversion summary from utf8 here, use translated strings as is. (set_title_from_comp): reflect this, simplify. * gui/dialogs/task-editor.c: updated copies of above functions here. * gui/gnome-cal.c: use defines from widgets/misc/e-filter-bar.h for consistency in "Show all". svn path=/trunk/; revision=9693 --- addressbook/gui/component/Makefile.am | 1 - addressbook/gui/component/addressbook.c | 14 +++++--------- addressbook/gui/component/select-names/Makefile.am | 1 - 3 files changed, 5 insertions(+), 11 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/Makefile.am b/addressbook/gui/component/Makefile.am index 3089f53901..de6e3f2337 100644 --- a/addressbook/gui/component/Makefile.am +++ b/addressbook/gui/component/Makefile.am @@ -15,7 +15,6 @@ INCLUDES = \ -I$(top_srcdir)/addressbook/backend \ -I$(top_builddir)/addressbook/backend \ $(BONOBO_HTML_GNOME_CFLAGS) \ - -DEVOLUTION_VERSION=\""$(VERSION)"\" \ -DEVOLUTION_DATADIR=\""$(datadir)"\" \ -DEVOLUTION_GLADEDIR=\""$(gladedir)"\" \ -DEVOLUTION_ICONSDIR=\""$(iconsdir)"\" \ diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 197de831fa..a67b004f31 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -35,6 +35,7 @@ #include #include +#include #define PROPERTY_FOLDER_URI "folder_uri" @@ -554,15 +555,10 @@ set_prop (BonoboPropertyBag *bag, } } -enum { - ESB_SHOW_ALL, - ESB_ADVANCED, -}; - static ESearchBarItem addressbook_search_menu_items[] = { - { N_("Show All"), ESB_SHOW_ALL }, + E_FILTERBAR_RESET, { NULL, 0 }, - { N_("Advanced..."), ESB_ADVANCED}, + E_FILTERBAR_ADVANCED, { NULL, -1 } }; @@ -571,10 +567,10 @@ addressbook_menu_activated (ESearchBar *esb, int id, AddressbookView *view) { EBook *book; switch (id) { - case ESB_SHOW_ALL: + case E_FILTERBAR_RESET_ID: e_addressbook_view_show_all(view->view); break; - case ESB_ADVANCED: + case E_FILTERBAR_ADVANCED_ID: gtk_object_get(GTK_OBJECT(view->view), "book", &book, NULL); diff --git a/addressbook/gui/component/select-names/Makefile.am b/addressbook/gui/component/select-names/Makefile.am index 2d877fdf6e..8c308d937a 100644 --- a/addressbook/gui/component/select-names/Makefile.am +++ b/addressbook/gui/component/select-names/Makefile.am @@ -39,7 +39,6 @@ INCLUDES = \ -I$(top_srcdir)/addressbook/backend \ -I$(top_builddir)/addressbook/backend \ $(BONOBO_HTML_GNOME_CFLAGS) \ - -DEVOLUTION_VERSION=\""$(VERSION)"\" \ -DEVOLUTION_GLADEDIR=\""$(gladedir)"\" \ -DEVOLUTION_ICONSDIR=\""$(iconsdir)"\" \ -DEVOLUTION_LOCALEDIR=\""$(localedir)"\" \ -- cgit v1.2.3