aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorCody Russell <bratsche@src.gnome.org>2000-08-10 07:59:37 +0800
committerCody Russell <bratsche@src.gnome.org>2000-08-10 07:59:37 +0800
commit57b053b87516dd32f785fcb0cb35e15adc661239 (patch)
treec5ba77eb44e5824915a5f483d9b10486a4ae2b45 /addressbook/gui/component
parentfc65f736557ec270e57a27d6c813ff3f1d2356ea (diff)
downloadgsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.tar.gz
gsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.tar.zst
gsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.zip
Made the toolbars conform to the user's gnomecc settings for detachable
toolbars. svn path=/trunk/; revision=4677
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook.c7
1 files changed, 6 insertions, 1 deletions
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);
}