aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-paned.c
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/e-attachment-paned.c
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/e-attachment-paned.c')
-rw-r--r--widgets/misc/e-attachment-paned.c10
1 files changed, 8 insertions, 2 deletions
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);