From 150fcadcd211229444910f2799212c27a247fa60 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sat, 23 Sep 2000 15:41:21 +0000 Subject: Updates for the Bonobo changes from Michael who is having some troubles with CVS at home (so I commit this on his behalf). svn path=/trunk/; revision=5560 --- addressbook/gui/component/addressbook.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'addressbook/gui/component') diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index a632c61ead..1c0aa4ada7 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -345,8 +345,6 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, AddressbookView *view) { Bonobo_UIContainer remote_uih; - char *fname; - xmlNode *ui; Bonobo_UIContainer container; BonoboUIComponent *component; GtkWidget *quick_search_widget; @@ -366,21 +364,13 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, bonobo_ui_container_freeze (container, NULL); + bonobo_ui_util_set_ui (component, container, EVOLUTION_DATADIR, #ifdef HAVE_LDAP - fname = bonobo_ui_util_get_ui_fname ( - EVOLUTION_DATADIR, "evolution-addressbook-ldap.xml"); + "evolution-addressbook-ldap.xml", #else - fname = bonobo_ui_util_get_ui_fname ( - EVOLUTION_DATADIR, "evolution-addressbook.xml"); + "evolution-addressbook.xml", #endif - g_warning ("Attempting ui load from '%s'", fname); - - ui = bonobo_ui_util_new_ui (component, fname, "evolution-addressbook"); - - bonobo_ui_component_set_tree (component, container, "/", ui, NULL); - - g_free (fname); - xmlFreeNode (ui); + "evolution-addressbook"); quick_search_widget = make_quick_search_widget ( search_entry_activated, view); -- cgit