aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
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 /mail/folder-browser-factory.c
parentfc65f736557ec270e57a27d6c813ff3f1d2356ea (diff)
downloadgsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.tar
gsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.tar.gz
gsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.tar.bz2
gsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.tar.lz
gsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.tar.xz
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 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index d1b3d818e4..ae170867d1 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -48,6 +48,7 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
{
Bonobo_UIHandler remote_uih;
BonoboControl *toolbar_control;
+ GnomeDockItemBehavior behavior;
GtkWidget *toolbar, *toolbar_frame, *folder_browser;
char *toolbar_name = g_strdup_printf ("/Toolbar%d", fb->serial);
@@ -140,6 +141,11 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
gtk_widget_show_all (toolbar);
+ behavior = GNOME_DOCK_ITEM_BEH_EXCLUSIVE |
+ GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL;
+ if (!gnome_preferences_get_toolbar_detachable ())
+ behavior |= GNOME_DOCK_ITEM_BEH_LOCKED;
+
toolbar_frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (toolbar_frame), GTK_SHADOW_OUT);
gtk_container_add (GTK_CONTAINER (toolbar_frame), toolbar);
@@ -150,7 +156,7 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
toolbar_control = bonobo_control_new (toolbar_frame);
bonobo_ui_handler_dock_add (uih, toolbar_name,
bonobo_object_corba_objref (BONOBO_OBJECT (toolbar_control)),
- GNOME_DOCK_ITEM_BEH_EXCLUSIVE | GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL,
+ behavior,
GNOME_DOCK_TOP,
1, 1, 0);
g_free (toolbar_name);