aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-01 13:34:13 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-01 13:34:13 +0800
commit746f1858b44e33a49dd3aa02b55e681a01a5e43a (patch)
tree6d069d819cbf0c41b1d8d662450a317613766868 /mail/mail-display.c
parent3eede8f869a24e9faff30eb2b8950a4023d50047 (diff)
downloadgsoc2013-evolution-746f1858b44e33a49dd3aa02b55e681a01a5e43a.tar.gz
gsoc2013-evolution-746f1858b44e33a49dd3aa02b55e681a01a5e43a.tar.zst
gsoc2013-evolution-746f1858b44e33a49dd3aa02b55e681a01a5e43a.zip
Make the mail folder browser use EScrollFrame for a nicer look.
svn path=/trunk/; revision=3328
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 4ab6dbed02..8b07d7eaec 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -360,13 +360,13 @@ mail_display_set_message (MailDisplay *mail_display,
mail_html_write (mail_display->html, stream, "</BODY></HTML>\n");
gtk_html_end (mail_display->html, stream, GTK_HTML_STREAM_OK);
- adj = gtk_scrolled_window_get_vadjustment (mail_display->scroll);
+ adj = e_scroll_frame_get_vadjustment (mail_display->scroll);
gtk_adjustment_set_value (adj, 0);
- gtk_scrolled_window_set_vadjustment (mail_display->scroll, adj);
+ e_scroll_frame_set_vadjustment (mail_display->scroll, adj);
- adj = gtk_scrolled_window_get_hadjustment (mail_display->scroll);
+ adj = e_scroll_frame_get_hadjustment (mail_display->scroll);
gtk_adjustment_set_value (adj, 0);
- gtk_scrolled_window_set_hadjustment (mail_display->scroll, adj);
+ e_scroll_frame_set_hadjustment (mail_display->scroll, adj);
}
@@ -411,12 +411,11 @@ mail_display_new (FolderBrowser *parent_folder_browser)
gtk_box_set_homogeneous (GTK_BOX (mail_display), FALSE);
gtk_widget_show (GTK_WIDGET (mail_display));
- scroll = gtk_scrolled_window_new (NULL, NULL);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
- GTK_POLICY_AUTOMATIC,
- GTK_POLICY_ALWAYS);
- gtk_box_pack_start_defaults (GTK_BOX (mail_display),
- GTK_WIDGET (scroll));
+ scroll = e_scroll_frame_new (NULL, NULL);
+ e_scroll_frame_set_policy (E_SCROLL_FRAME (scroll),
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ e_scroll_frame_set_shadow_type (E_SCROLL_FRAME (scroll), GTK_SHADOW_IN);
+ gtk_box_pack_start_defaults (GTK_BOX (mail_display), GTK_WIDGET (scroll));
gtk_widget_show (GTK_WIDGET (scroll));
html = gtk_html_new ();
@@ -430,7 +429,7 @@ mail_display_new (FolderBrowser *parent_folder_browser)
gtk_container_add (GTK_CONTAINER (scroll), html);
gtk_widget_show (GTK_WIDGET (html));
- mail_display->scroll = GTK_SCROLLED_WINDOW (scroll);
+ mail_display->scroll = E_SCROLL_FRAME (scroll);
mail_display->html = GTK_HTML (html);
return GTK_WIDGET (mail_display);