From f890ddee3860d71e0d18ffaef34de497375985bf Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Wed, 24 Aug 2005 04:22:55 +0000 Subject: Dont call update. Just set the width on the bar. 2005-08-24 Srinivasa Ragavan * em-format-html-display.c (efhd_bar_resize): Dont call update. Just set the width on the bar. svn path=/trunk/; revision=30235 --- mail/em-format-html-display.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mail/em-format-html-display.c') diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index 3b66e882be..63a5c727c4 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -1898,10 +1898,8 @@ efhd_bar_resize(GtkWidget *w, GtkAllocation *event, EMFormatHTML *efh) gtk_widget_size_request (efhd->priv->attachment_bar, &req); width = ((GtkWidget *) efh->html)->allocation.width - 16; - gtk_widget_set_size_request (efhd->priv->attachment_bar, width, req.height); - - /* Update the bar to refresh the icons and adjust the height */ - e_attachment_bar_refresh (E_ATTACHMENT_BAR(efhd->priv->attachment_bar)); + /* Update the width of the bar */ + e_attachment_bar_set_width(E_ATTACHMENT_BAR(efhd->priv->attachment_bar), width); } static gboolean -- cgit v1.2.3