aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-browser.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-05-30 00:56:18 +0800
committerJacob Leach <jleach@src.gnome.org>2001-05-30 00:56:18 +0800
commitefabbb93c9f61e583d835d1735834cc5bd0ce63c (patch)
tree0a7fee9e14e25fe491828f3eccc5de36794af8eb /mail/message-browser.c
parent0f0dd1ed3618b86fed7524b2140b2eab9592fbca (diff)
downloadgsoc2013-evolution-efabbb93c9f61e583d835d1735834cc5bd0ce63c.tar.gz
gsoc2013-evolution-efabbb93c9f61e583d835d1735834cc5bd0ce63c.tar.zst
gsoc2013-evolution-efabbb93c9f61e583d835d1735834cc5bd0ce63c.zip
one-line fix for bug #2536: File->Close in message viewer doesn't work.
2001-05-29 Jason Leach <jleach@ximian.com> * message-browser.c (message_browser_new): one-line fix for bug #2536: File->Close in message viewer doesn't work. (message_browser_new): Also replaced like 4 lines of code with a one-liner featuring gnome_app_create_toolbar_with_data(). 2001-05-28 Jason Leach <jleach@ximian.com> * mail-local.c (load_metainfo): Don't need to check if (foo!=NULL) before doing an xmlFreeDoc(). svn path=/trunk/; revision=10039
Diffstat (limited to 'mail/message-browser.c')
-rw-r--r--mail/message-browser.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/mail/message-browser.c b/mail/message-browser.c
index 8bd4470235..f3de72806a 100644
--- a/mail/message-browser.c
+++ b/mail/message-browser.c
@@ -256,7 +256,7 @@ set_default_size (GtkWidget *widget)
GtkWidget *
message_browser_new (const GNOME_Evolution_Shell shell, const char *uri, const char *uid)
{
- GtkWidget *toolbar, *vbox;
+ GtkWidget *vbox;
MessageBrowser *new;
FolderBrowser *fb;
@@ -265,14 +265,9 @@ message_browser_new (const GNOME_Evolution_Shell shell, const char *uri, const c
gnome_app_construct (GNOME_APP (new), "Evolution", "");
gtk_object_set_data_full (GTK_OBJECT (new), "uid", g_strdup (uid), g_free);
-
- toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH);
- gnome_app_fill_toolbar_with_data (GTK_TOOLBAR (toolbar),
- message_browser_toolbar,
- NULL, new);
-
- gnome_app_set_toolbar (GNOME_APP (new), GTK_TOOLBAR (toolbar));
- gnome_app_create_menus (GNOME_APP (new), message_browser_menubar);
+
+ gnome_app_create_toolbar_with_data (GNOME_APP (new), message_browser_toolbar, new);
+ gnome_app_create_menus_with_data (GNOME_APP (new), message_browser_menubar, new);
fb = FOLDER_BROWSER (folder_browser_new (shell));
new->fb = fb;