[evolution] Bug #681431 - Expanded attachment bar hides headers
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #681431 - Expanded attachment bar hides headers
- Date: Wed, 29 Aug 2012 08:36:28 +0000 (UTC)
commit 0d4a549502104ffd25d129a9599e97f97582741f
Author: Dan VrÃtil <dvratil redhat com>
Date: Wed Aug 29 10:36:13 2012 +0200
Bug #681431 - Expanded attachment bar hides headers
mail/e-mail-display.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index 1783600..0e1bea5 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -632,7 +632,7 @@ mail_display_plugin_widget_resize (GObject *object,
GtkWidget *widget;
WebKitDOMElement *parent_element;
gchar *dim;
- gint height;
+ gint height, width;
widget = GTK_WIDGET (object);
parent_element = g_object_get_data (object, "parent_element");
@@ -644,7 +644,8 @@ mail_display_plugin_widget_resize (GObject *object,
return;
}
- gtk_widget_get_preferred_height (widget, &height, NULL);
+ width = gtk_widget_get_allocated_width (widget);
+ gtk_widget_get_preferred_height_for_width (widget, width, &height, NULL);
/* Int -> Str */
dim = g_strdup_printf ("%d", height);
@@ -1524,7 +1525,6 @@ e_mail_display_init (EMailDisplay *display)
g_signal_connect (
main_frame, "notify::load-status",
G_CALLBACK (setup_DOM_bindings), NULL);
- main_frame = webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (display));
g_signal_connect (
main_frame, "notify::load-status",
G_CALLBACK (mail_parts_bind_dom), NULL);
@@ -1849,8 +1849,6 @@ e_mail_display_set_status (EMailDisplay *display,
e_web_view_load_string (E_WEB_VIEW (display), str);
g_free (str);
-
- gtk_widget_show_all (GTK_WIDGET (display));
}
static gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]