diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-07-28 10:31:47 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-07-28 23:24:49 +0800 |
commit | 2c4510e858fcf96e8f3d02f3f92564460752e983 (patch) | |
tree | 777c673d5fdaf649fb1c9eabd9357eac622b15f6 /widgets/misc/e-attachment-paned.c | |
parent | 3fe8269156da1b57b0fc7391f5cf07cab6f61606 (diff) | |
parent | 067ef5580fc287809958d4503691bfcba2b29ee5 (diff) | |
download | gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.gz gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.bz2 gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.lz gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.xz gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.zst gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.zip |
Merge commit 'EVOLUTION_2_27_5' into kill-bonobo
Diffstat (limited to 'widgets/misc/e-attachment-paned.c')
-rw-r--r-- | widgets/misc/e-attachment-paned.c | 10 |
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..8e25098767 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 gint initial_height = 150; struct _EAttachmentPanedPrivate { GtkTreeModel *model; @@ -66,6 +66,12 @@ enum { static gpointer parent_class; +void +e_attachment_paned_set_default_height (gint 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); |