From 57b053b87516dd32f785fcb0cb35e15adc661239 Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Wed, 9 Aug 2000 23:59:37 +0000 Subject: Made the toolbars conform to the user's gnomecc settings for detachable toolbars. svn path=/trunk/; revision=4677 --- addressbook/gui/component/addressbook.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index ffc40a3424..2e484ee1ff 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -481,6 +481,7 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, Bonobo_UIHandler remote_uih; GtkWidget *toolbar, *toolbar_frame; BonoboControl *toolbar_control; + GnomeDockItemBehavior behavior; GtkWidget *hbox = gtk_hbox_new (FALSE, 0); GtkWidget *quick_search_widget; @@ -550,11 +551,15 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, gtk_widget_show_all (toolbar_frame); + behavior = GNOME_DOCK_ITEM_BEH_EXCLUSIVE; + if (!gnome_preferences_get_toolbar_detachable ()) + behavior |= GNOME_DOCK_ITEM_BEH_LOCKED; + toolbar_control = bonobo_control_new (toolbar_frame); bonobo_ui_handler_dock_add ( uih, "/Toolbar", bonobo_object_corba_objref (BONOBO_OBJECT (toolbar_control)), - GNOME_DOCK_ITEM_BEH_EXCLUSIVE, + behavior, GNOME_DOCK_TOP, 1, 1, 0); } -- cgit v1.2.3