[anjal] Fix Anjal to scroll well with webkit. Multiple scroll windows were
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjal] Fix Anjal to scroll well with webkit. Multiple scroll windows were
- Date: Tue, 3 Nov 2009 11:39:25 +0000 (UTC)
commit 4ac2e0a0bb9382182bb7ff3f343f3bed81fe82bb
Author: Srinivasa Ragavan <sragavan gnome org>
Date: Tue Nov 3 11:37:07 2009 +0000
Fix Anjal to scroll well with webkit. Multiple scroll windows were
loaded for message views. Fixed it.
src/mail-message-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/mail-message-view.c b/src/mail-message-view.c
index 26422c6..b30442d 100644
--- a/src/mail-message-view.c
+++ b/src/mail-message-view.c
@@ -648,12 +648,16 @@ static void
mmv_finished_loading_webkit (WebKitWebView *webkitwebview, WebKitWebFrame *arg1, gpointer user_data)
{
MailMessageView *mmview = (MailMessageView *) user_data;
+ GtkRequisition req;
+
// gtk_widget_hide (mmview->priv->table_headers);
// gtk_widget_show (mmview->priv->html_headers);
gtk_widget_hide(mmview->priv->spinner);
#if HAVE_WEBKIT_PATCHED
gtk_widget_set_size_request ((GtkWidget *)webkitwebview, -1, webkit_web_frame_get_height(arg1));
#endif
+ gtk_widget_size_request ((GtkWidget *)webkitwebview, &req);
+ gtk_widget_set_size_request ((GtkWidget *)webkitwebview, req.width, req.height);
/* Connect on expose, and mark mail as read on expose, when the mail is actually seen */
g_signal_connect (webkitwebview, "expose-event" , G_CALLBACK(mark_mail_read), mmview);
g_signal_emit (mmview, signals[MESSAGE_LOADED], 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]