aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-09-04 23:45:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-10-06 20:16:21 +0800
commit0e064de971dd8b5e565558cd14efdca8ae4dbcb0 (patch)
tree12e8b8975e524abeed91c6612834f7499c59cadf /calendar/gui
parent224f26b84d9c12b0dd1d337f51c14b6ebb901007 (diff)
downloadgsoc2013-evolution-0e064de971dd8b5e565558cd14efdca8ae4dbcb0.tar
gsoc2013-evolution-0e064de971dd8b5e565558cd14efdca8ae4dbcb0.tar.gz
gsoc2013-evolution-0e064de971dd8b5e565558cd14efdca8ae4dbcb0.tar.bz2
gsoc2013-evolution-0e064de971dd8b5e565558cd14efdca8ae4dbcb0.tar.lz
gsoc2013-evolution-0e064de971dd8b5e565558cd14efdca8ae4dbcb0.tar.xz
gsoc2013-evolution-0e064de971dd8b5e565558cd14efdca8ae4dbcb0.tar.zst
gsoc2013-evolution-0e064de971dd8b5e565558cd14efdca8ae4dbcb0.zip
EAttachmentPaned: Add "resize-toplevel" property.
Similiar to the new GtkExpander:resize-toplevel property in GTK+ 3.2, but adapted to the fact that EAttachmentPaned's expander has no direct child widget, and instead acts on the child widget in the lower pane. CompEditor now uses this to fix the weird vertical resizing behavior when its attachment bar is expanded and then collapsed again.
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/comp-editor.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 0375e546e6..4fa0250838 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -2112,17 +2112,14 @@ comp_editor_init (CompEditor *editor)
GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
widget = e_attachment_paned_new ();
+ e_attachment_paned_set_resize_toplevel (
+ E_ATTACHMENT_PANED (widget), TRUE);
gtk_container_set_border_width (GTK_CONTAINER (widget), 6);
gtk_box_pack_start (GTK_BOX (container), widget, TRUE, TRUE, 0);
priv->attachment_view = g_object_ref (widget);
gtk_widget_show (widget);
if (express_mode) {
- e_attachment_paned_set_expanded (
- E_ATTACHMENT_PANED (widget), TRUE);
- e_attachment_paned_set_expanded (
- E_ATTACHMENT_PANED (widget), FALSE);
-
widget = e_attachment_paned_get_view_combo (
E_ATTACHMENT_PANED (widget));
gtk_widget_hide (widget);