diff options
author | Chris Toshok <toshok@src.gnome.org> | 2000-05-03 23:48:54 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-05-03 23:48:54 +0800 |
commit | 40856ae03686075bfa7e407ac4a4cc36940078d9 (patch) | |
tree | d81efe388bea6578fb094b7600b3eb1007d76817 /addressbook | |
parent | 3ccfb61399e6148be5a8b3141f35af272d10622d (diff) | |
download | gsoc2013-evolution-40856ae03686075bfa7e407ac4a4cc36940078d9.tar gsoc2013-evolution-40856ae03686075bfa7e407ac4a4cc36940078d9.tar.gz gsoc2013-evolution-40856ae03686075bfa7e407ac4a4cc36940078d9.tar.bz2 gsoc2013-evolution-40856ae03686075bfa7e407ac4a4cc36940078d9.tar.lz gsoc2013-evolution-40856ae03686075bfa7e407ac4a4cc36940078d9.tar.xz gsoc2013-evolution-40856ae03686075bfa7e407ac4a4cc36940078d9.tar.zst gsoc2013-evolution-40856ae03686075bfa7e407ac4a4cc36940078d9.zip |
#ifdef HAVE_LDAP the ldap specific stuff. (null_cb): same.
* gui/component/addressbook.c (control_deactivate): #ifdef
HAVE_LDAP the ldap specific stuff.
(null_cb): same.
(control_activate): same.
svn path=/trunk/; revision=2777
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook.c | 11 |
2 files changed, 15 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 3cf0df20bd..89d894ab71 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2000-05-03 Chris Toshok <toshok@helixcode.com> + + * gui/component/addressbook.c (control_deactivate): #ifdef + HAVE_LDAP the ldap specific stuff. + (null_cb): same. + (control_activate): same. + 2000-05-02 Ettore Perazzoli <ettore@helixcode.com> * backend/ebook/Makefile.am (INCLUDES): Add diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index e559c39ea4..b225c5ce93 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -33,8 +33,9 @@ control_deactivate (BonoboControl *control, BonoboUIHandler *uih) { /* how to remove a menu item */ bonobo_ui_handler_menu_remove (uih, "/Actions/New Contact"); +#ifdef HAVE_LDAP bonobo_ui_handler_menu_remove (uih, "/Actions/New Directory Server"); - +#endif /* remove our toolbar */ bonobo_ui_handler_dock_remove (uih, "/Toolbar"); } @@ -95,6 +96,7 @@ new_contact_cb (BonoboUIHandler *uih, void *user_data, const char *path) } +#ifdef HAVE_LDAP static void null_cb (EBook *book, EBookStatus status, gpointer closure) { @@ -130,6 +132,7 @@ new_server_cb (BonoboUIHandler *uih, void *user_data, const char *path) g_warning ("error calling load_uri!\n"); } } +#endif static void find_contact_cb (BonoboUIHandler *uih, void *user_data, const char *path) @@ -250,12 +253,14 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, 0, 0, new_contact_cb, (gpointer)minicard_view); +#ifdef HAVE_LDAP bonobo_ui_handler_menu_new_item (uih, "/Actions/New Directory Server", N_("N_ew Directory Server"), NULL, -1, BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, new_server_cb, (gpointer)minicard_view); +#endif toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH); @@ -274,7 +279,7 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, gtk_box_pack_start (GTK_BOX (hbox), quick_search_widget, FALSE, TRUE, 0); - + gtk_widget_show_all (hbox); toolbar_control = bonobo_control_new (hbox); @@ -457,7 +462,7 @@ addressbook_factory (BonoboGenericFactory *Factory, void *closure) control = bonobo_control_new(vbox); gtk_signal_connect (GTK_OBJECT (control), "activate", - control_activate_cb, view->view); + control_activate_cb, view->view); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); |