[anjal] Moblin Bugzilla: #3768 - Horizontal scroll doesn't appear and text gets
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Moblin Bugzilla: #3768 - Horizontal scroll doesn't appear and text gets
- Date: Wed, 24 Jun 2009 18:39:40 +0000 (UTC)
commit da9b64104c49e5ea9421321d6d76741ecefe3e85
Author: Srinivasa Ragavan <sragavan novell com>
Date: Thu Jun 25 00:09:56 2009 +0530
Moblin Bugzilla: #3768 - Horizontal scroll doesn't appear and text gets
clipped.
src/mail-message-view.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/mail-message-view.c b/src/mail-message-view.c
index a52d5da..5267d87 100644
--- a/src/mail-message-view.c
+++ b/src/mail-message-view.c
@@ -886,12 +886,17 @@ GtkWidget *
mmv_create_webview (MailMessageView *mmv, GtkWidget *box)
{
WebKitWebView *web = (WebKitWebView *)webkit_web_view_new ();
+ GtkWidget *scroll = gtk_scrolled_window_new (NULL, NULL);
+
+ gtk_scrolled_window_set_policy ((GtkScrolledWindow *)scroll, GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER);
+ gtk_widget_show(scroll);
+ gtk_container_add (scroll, (GtkWidget*)web);
g_signal_connect (web, "load-started", G_CALLBACK(mmv_finished_webkit), mmv);
g_signal_connect (web, "load-finished", G_CALLBACK(mmv_finished_loading_webkit), mmv);
g_signal_connect (web, "button-press-event", G_CALLBACK (mmv_button_press), mmv);
-
- gtk_box_pack_start ((GtkBox *)box, (GtkWidget *)web, FALSE, FALSE, 0);
+
+ gtk_box_pack_start ((GtkBox *)box, scroll, FALSE, FALSE, 0);
webkit_web_view_set_editable (web, FALSE);
gtk_widget_show ((GtkWidget *)web);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]