[evolution] Bug #678408 - Mail view is very small for some mails
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #678408 - Mail view is very small for some mails
- Date: Tue, 7 Aug 2012 13:57:37 +0000 (UTC)
commit ad9390872fd3f1516a9295b013fa56fe6f7a01c9
Author: Milan Crha <mcrha redhat com>
Date: Tue Aug 7 15:56:21 2012 +0200
Bug #678408 - Mail view is very small for some mails
widgets/misc/e-web-view.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index bb755b1..e4d7be7 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -578,11 +578,20 @@ web_view_load_status_changed_cb (WebKitWebView *web_view,
gpointer user_data)
{
WebKitLoadStatus status;
+ GtkAllocation allocation, allocation_copy;
status = webkit_web_view_get_load_status (web_view);
if (status != WEBKIT_LOAD_FINISHED)
return;
+ /* Workaround webkit bug https://bugs.webkit.org/show_bug.cgi?id=89553 */
+ gtk_widget_get_allocation (GTK_WIDGET (web_view), &allocation_copy);
+ allocation = allocation_copy;
+ allocation.width -= 10;
+ allocation.height -= 10;
+ gtk_widget_size_allocate (GTK_WIDGET (web_view), &allocation);
+ gtk_widget_size_allocate (GTK_WIDGET (web_view), &allocation_copy);
+
web_view_update_document_highlights (E_WEB_VIEW (web_view));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]