aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2009-07-24 10:50:14 +0800
committerSrinivasa Ragavan <sragavan@novell.com>2009-07-24 10:50:14 +0800
commit55978f863a5c51797881dfe8fd69ca862d60b70c (patch)
tree9209ae487131b744a3802228cac5c5ac0af2c8c0 /widgets/misc
parente502c83e159afd3df74c8ff20cf21e56bfb1a242 (diff)
downloadgsoc2013-evolution-55978f863a5c51797881dfe8fd69ca862d60b70c.tar
gsoc2013-evolution-55978f863a5c51797881dfe8fd69ca862d60b70c.tar.gz
gsoc2013-evolution-55978f863a5c51797881dfe8fd69ca862d60b70c.tar.bz2
gsoc2013-evolution-55978f863a5c51797881dfe8fd69ca862d60b70c.tar.lz
gsoc2013-evolution-55978f863a5c51797881dfe8fd69ca862d60b70c.tar.xz
gsoc2013-evolution-55978f863a5c51797881dfe8fd69ca862d60b70c.tar.zst
gsoc2013-evolution-55978f863a5c51797881dfe8fd69ca862d60b70c.zip
Fix Attachment bar size of Anjal.
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-attachment-icon-view.c9
-rw-r--r--widgets/misc/e-attachment-icon-view.h3
-rw-r--r--widgets/misc/e-attachment-paned.c10
-rw-r--r--widgets/misc/e-attachment-paned.h2
4 files changed, 20 insertions, 4 deletions
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 (
diff --git a/widgets/misc/e-attachment-icon-view.h b/widgets/misc/e-attachment-icon-view.h
index 4aabf6c429..8b118a7a39 100644
--- a/widgets/misc/e-attachment-icon-view.h
+++ b/widgets/misc/e-attachment-icon-view.h
@@ -60,7 +60,8 @@ struct _EAttachmentIconViewClass {
GType e_attachment_icon_view_get_type (void);
GtkWidget * e_attachment_icon_view_new (void);
-
+void e_attachment_icon_view_set_default_icon_size
+ (int size);
G_END_DECLS
#endif /* E_ATTACHMENT_ICON_VIEW_H */
diff --git a/widgets/misc/e-attachment-paned.c b/widgets/misc/e-attachment-paned.c
index a65d1c6ea4..0ba853bf3d 100644
--- a/widgets/misc/e-attachment-paned.c
+++ b/widgets/misc/e-attachment-paned.c
@@ -38,7 +38,7 @@
#define NUM_VIEWS 2
/* Initial height of the lower pane. */
-#define INITIAL_HEIGHT 150
+static int initial_height = 150;
struct _EAttachmentPanedPrivate {
GtkTreeModel *model;
@@ -66,6 +66,12 @@ enum {
static gpointer parent_class;
+void
+e_attachment_paned_set_default_height (int height)
+{
+ initial_height = height;
+}
+
static void
attachment_paned_notify_cb (EAttachmentPaned *paned,
GParamSpec *pspec,
@@ -515,7 +521,7 @@ attachment_paned_init (EAttachmentPaned *paned)
container = GTK_WIDGET (paned);
widget = gtk_notebook_new ();
- gtk_widget_set_size_request (widget, -1, INITIAL_HEIGHT);
+ 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, FALSE, FALSE);
diff --git a/widgets/misc/e-attachment-paned.h b/widgets/misc/e-attachment-paned.h
index 825de3a16b..93722a248e 100644
--- a/widgets/misc/e-attachment-paned.h
+++ b/widgets/misc/e-attachment-paned.h
@@ -82,6 +82,8 @@ GtkWidget * e_attachment_paned_get_controls_container
(EAttachmentPaned *paned);
GtkWidget * e_attachment_paned_get_view_combo
(EAttachmentPaned *paned);
+void e_attachment_paned_set_default_height
+ (int height);
G_END_DECLS