diff options
author | Cody Russell <bratsche@src.gnome.org> | 2000-08-10 07:59:37 +0800 |
---|---|---|
committer | Cody Russell <bratsche@src.gnome.org> | 2000-08-10 07:59:37 +0800 |
commit | 57b053b87516dd32f785fcb0cb35e15adc661239 (patch) | |
tree | c5ba77eb44e5824915a5f483d9b10486a4ae2b45 /mail/mail-view.c | |
parent | fc65f736557ec270e57a27d6c813ff3f1d2356ea (diff) | |
download | gsoc2013-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 'mail/mail-view.c')
-rw-r--r-- | mail/mail-view.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mail/mail-view.c b/mail/mail-view.c index 266df872cb..a98cc4d5ca 100644 --- a/mail/mail-view.c +++ b/mail/mail-view.c @@ -89,6 +89,7 @@ mail_view_create (FolderBrowser *folder_browser) GtkWidget *toolbar; GtkWidget *mail_display; char *subject; + GnomeDockItemBehavior behavior; msg = folder_browser->mail_display->current_message; subject = (char *) camel_mime_message_get_subject (msg); @@ -102,8 +103,16 @@ mail_view_create (FolderBrowser *folder_browser) gnome_app_fill_toolbar_with_data (GTK_TOOLBAR (toolbar), mail_view_toolbar, NULL, folder_browser); - - gnome_app_set_toolbar (GNOME_APP (window), GTK_TOOLBAR (toolbar)); + + behavior = GNOME_DOCK_ITEM_BEH_NORMAL; + if (!gnome_preferences_get_toolbar_detachable ()) + behavior |= GNOME_DOCK_ITEM_BEH_LOCKED; + + gnome_app_add_toolbar (GNOME_APP (window), + GTK_TOOLBAR (toolbar), + GNOME_APP_TOOLBAR_NAME, + behavior, + GNOME_DOCK_TOP, 1, 0, 0); gnome_app_create_menus (GNOME_APP (window), mail_view_menubar); |