diff options
author | Gediminas Paulauskas <menesis@delfi.lt> | 2001-05-08 01:33:31 +0800 |
---|---|---|
committer | Gediminas Paulauskas <menesis@src.gnome.org> | 2001-05-08 01:33:31 +0800 |
commit | a703c61b47151e7b6897fa657bc22be6e8526c3a (patch) | |
tree | 364bbc4de381773e824de8147d20734b49284597 /addressbook/gui | |
parent | 85a74e8277cb8064c5958b30de8484eac8b04d8a (diff) | |
download | gsoc2013-evolution-a703c61b47151e7b6897fa657bc22be6e8526c3a.tar gsoc2013-evolution-a703c61b47151e7b6897fa657bc22be6e8526c3a.tar.gz gsoc2013-evolution-a703c61b47151e7b6897fa657bc22be6e8526c3a.tar.bz2 gsoc2013-evolution-a703c61b47151e7b6897fa657bc22be6e8526c3a.tar.lz gsoc2013-evolution-a703c61b47151e7b6897fa657bc22be6e8526c3a.tar.xz gsoc2013-evolution-a703c61b47151e7b6897fa657bc22be6e8526c3a.tar.zst gsoc2013-evolution-a703c61b47151e7b6897fa657bc22be6e8526c3a.zip |
use define from widgets/misc/e-filter-bar.h instead of own enumeration and
2001-05-07 Gediminas Paulauskas <menesis@delfi.lt>
* 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 <menesis@delfi.lt>
* 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
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/Makefile.am | 1 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook.c | 14 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/Makefile.am | 1 |
3 files changed, 5 insertions, 11 deletions
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 <ebook/e-book.h> #include <widgets/misc/e-search-bar.h> +#include <widgets/misc/e-filter-bar.h> #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)"\" \ |