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 --- calendar/gui/calendar-commands.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 4f06fd6239..feb3cd9590 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -650,9 +650,14 @@ calendar_control_activate (BonoboControl *control, gtk_widget_show_all (toolbar_frame); + behavior = GNOME_DOCK_ITEM_BEH_EXCLUSIVE | + GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL; + if (!gnome_preferences_get_toolbar_detachable ()) + behavior |= GNOME_DOCK_ITEM_BEH_LOCKED; + bonobo_ui_handler_dock_add (uih, "/Toolbar", bonobo_object_corba_objref (BONOBO_OBJECT (bonobo_control_new (toolbar_frame))), - GNOME_DOCK_ITEM_BEH_EXCLUSIVE | GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL, + behavior, GNOME_DOCK_TOP, 1, 1, 0); -- cgit v1.2.3