From 55978f863a5c51797881dfe8fd69ca862d60b70c Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 24 Jul 2009 08:20:14 +0530 Subject: Fix Attachment bar size of Anjal. --- widgets/misc/e-attachment-icon-view.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'widgets/misc/e-attachment-icon-view.c') diff --git a/widgets/misc/e-attachment-icon-view.c b/widgets/misc/e-attachment-icon-view.c index a7d8ad271c..340805773d 100644 --- a/widgets/misc/e-attachment-icon-view.c +++ b/widgets/misc/e-attachment-icon-view.c @@ -40,8 +40,15 @@ enum { PROP_EDITABLE }; +static int icon_size = GTK_ICON_SIZE_DIALOG; static gpointer parent_class; +void +e_attachment_icon_view_set_default_icon_size (int size) +{ + icon_size = size; +} + static void attachment_icon_view_set_property (GObject *object, guint property_id, @@ -451,7 +458,7 @@ attachment_icon_view_init (EAttachmentIconView *icon_view) GTK_ICON_VIEW (icon_view), GTK_SELECTION_MULTIPLE); renderer = gtk_cell_renderer_pixbuf_new (); - g_object_set (renderer, "stock-size", GTK_ICON_SIZE_DIALOG, NULL); + g_object_set (renderer, "stock-size", icon_size, NULL); gtk_cell_layout_pack_start (cell_layout, renderer, FALSE); gtk_cell_layout_add_attribute ( -- cgit v1.2.3