From c85ad2279bcfc8e85e6c6b5824e851da92173582 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 15 Mar 2002 22:51:13 +0000 Subject: [Start implementing the new Search Bar design.] * e-search-bar.c (init): Init various members to NULL. (set_dropdown): Removed. (add_dropdown): Removed. (set_menu): New. (add_menu_items): New. (set_option): No need to setup the dropdown size here anymore. (verb_cb): Function implementing the search menu verbs. (update_bonobo_menus): New. (e_search_bar_set_ui_component): New. * e-search-bar.h: Remove the dropdown button stuff from struct ESearchBar. Add `uic' and `items' members. * e-filter-bar.c (e_filter_bar_new): Get a @uic arg. * folder-browser-factory.c (control_activate): Set the UI component on the search bar. * gui/tasks-control.c (tasks_control_activate): Call `e_tasks_set_ui_component()' here to give it the BonoboUIComponent. (tasks_control_deactivate): Likewise, call it here to unset the BonoboUIComponent. * gui/e-tasks.c (e_tasks_set_ui_component): New. * gui/calendar-commands.c (calendar_control_activate): Call gnome_calendar_set_ui_component() here. (calendar_control_deactivate): ...And here, with a NULL BonoboUIComponent. * gui/gnome-cal.c (gnome_calendar_set_ui_component): New. * gui/component/addressbook.c (control_activate): Call `e_search_bar_set_ui_component()' to set the BonoboUIComponent for the search bar. * gui/component/GNOME_Evolution_Addressbook.oaf.in: Add an icon for the LDAP sources configuration control. svn path=/trunk/; revision=16178 --- addressbook/ChangeLog | 6 +++++- addressbook/gui/component/GNOME_Evolution_Addressbook.oaf.in | 2 +- addressbook/gui/component/addressbook.c | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index d809837a3d..feda786102 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,4 +1,8 @@ -2002-03-13 Ettore Perazzoli +2002-03-15 Ettore Perazzoli + + * gui/component/addressbook.c (control_activate): Call + `e_search_bar_set_ui_component()' to set the BonoboUIComponent for + the search bar. * gui/component/GNOME_Evolution_Addressbook.oaf.in: Add an icon for the LDAP sources configuration control. diff --git a/addressbook/gui/component/GNOME_Evolution_Addressbook.oaf.in b/addressbook/gui/component/GNOME_Evolution_Addressbook.oaf.in index 764457a5e1..a8bcaa2ac1 100644 --- a/addressbook/gui/component/GNOME_Evolution_Addressbook.oaf.in +++ b/addressbook/gui/component/GNOME_Evolution_Addressbook.oaf.in @@ -160,7 +160,7 @@ - + diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 956edc915a..a0f9bda94b 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -395,6 +395,8 @@ control_activate (BonoboControl *control, bonobo_ui_component_set_container (uic, remote_ui_container); bonobo_object_release_unref (remote_ui_container, NULL); + e_search_bar_set_ui_component (view->search, uic); + bonobo_ui_component_add_verb_list_with_data ( uic, verbs, view); -- cgit v1.2.3