From 8ea9f9377f071d4e8088e5c744e5470ccddb0fb1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 24 Apr 2009 09:18:58 -0400 Subject: Fix a couple attachment issues Add a fallback icon name to attachments with GThemedIcons, just in case there's a problem loading the MIME type icon. I seen this when I build GTK+ locally and it can't find gnome-icon-theme icons. Also, fix a packing issue in EAttachmentPaned. CompEditor's attachment bar is still having problems, however. --- widgets/misc/e-attachment-paned.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'widgets/misc/e-attachment-paned.c') diff --git a/widgets/misc/e-attachment-paned.c b/widgets/misc/e-attachment-paned.c index a09fef0a66..3fed031473 100644 --- a/widgets/misc/e-attachment-paned.c +++ b/widgets/misc/e-attachment-paned.c @@ -37,6 +37,9 @@ #define NUM_VIEWS 2 +/* Initial height of the lower pane. */ +#define INITIAL_HEIGHT 150 + struct _EAttachmentPanedPrivate { GtkTreeModel *model; GtkWidget *expander; @@ -511,10 +514,10 @@ attachment_paned_init (EAttachmentPaned *paned) container = GTK_WIDGET (paned); widget = gtk_notebook_new (); - gtk_widget_set_size_request (widget, -1, 40); + gtk_widget_set_size_request (widget, -1, INITIAL_HEIGHT); gtk_notebook_set_show_tabs (GTK_NOTEBOOK (widget), FALSE); gtk_notebook_set_show_border (GTK_NOTEBOOK (widget), FALSE); - gtk_paned_pack2 (GTK_PANED (container), widget, TRUE, FALSE); + gtk_paned_pack2 (GTK_PANED (container), widget, FALSE, FALSE); paned->priv->notebook = g_object_ref (widget); gtk_widget_hide (widget); -- cgit v1.2.3