Force attachments view resize on add/remove of parts
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 16 Dec 2008 13:59:10 +0000 (13:59 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 16 Dec 2008 13:59:10 +0000 (13:59 +0000)
pmo-trunk-r6879

src/widgets/modest-attachments-view.c

index 6a17f99..b52b543 100644 (file)
@@ -206,6 +206,7 @@ modest_attachments_view_add_attachment (ModestAttachmentsView *attachments_view,
                modest_attachment_view_set_size (MODEST_ATTACHMENT_VIEW (att_view), size);
        gtk_box_pack_end (GTK_BOX (priv->box), att_view, FALSE, FALSE, 0);
        gtk_widget_show_all (att_view);
                modest_attachment_view_set_size (MODEST_ATTACHMENT_VIEW (att_view), size);
        gtk_box_pack_end (GTK_BOX (priv->box), att_view, FALSE, FALSE, 0);
        gtk_widget_show_all (att_view);
+       gtk_widget_queue_resize (GTK_WIDGET (attachments_view));
 }
 
 void
 }
 
 void
@@ -257,6 +258,7 @@ modest_attachments_view_remove_attachment (ModestAttachmentsView *atts_view, Tny
                own_clipboard (atts_view);
        }
 
                own_clipboard (atts_view);
        }
 
+       gtk_widget_queue_resize (GTK_WIDGET (atts_view));
 }
 
 void
 }
 
 void
@@ -287,6 +289,7 @@ modest_attachments_view_remove_attachment_by_id (ModestAttachmentsView *atts_vie
 
        own_clipboard (atts_view);
 
 
        own_clipboard (atts_view);
 
+       gtk_widget_queue_resize (GTK_WIDGET (atts_view));
 }
 
 static void
 }
 
 static void