aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-08-19 14:56:13 +0800
committerMilan Crha <mcrha@redhat.com>2011-08-19 14:56:13 +0800
commitc8061dd92686417fc0bf3aba83825643f1ad4d2b (patch)
tree0fded4b02d324cfa9bab2fbb4ca95fbb54cd5f1f /widgets/misc
parentdb58289bdf6b82ce211ae9b4accad2ad5998bb78 (diff)
downloadgsoc2013-evolution-c8061dd92686417fc0bf3aba83825643f1ad4d2b.tar
gsoc2013-evolution-c8061dd92686417fc0bf3aba83825643f1ad4d2b.tar.gz
gsoc2013-evolution-c8061dd92686417fc0bf3aba83825643f1ad4d2b.tar.bz2
gsoc2013-evolution-c8061dd92686417fc0bf3aba83825643f1ad4d2b.tar.lz
gsoc2013-evolution-c8061dd92686417fc0bf3aba83825643f1ad4d2b.tar.xz
gsoc2013-evolution-c8061dd92686417fc0bf3aba83825643f1ad4d2b.tar.zst
gsoc2013-evolution-c8061dd92686417fc0bf3aba83825643f1ad4d2b.zip
Bug #651633 - Hidden task/memo sidebar always automagically re-appears
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-paned.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/widgets/misc/e-paned.c b/widgets/misc/e-paned.c
index 1ddb83fdeb..b98dc1928d 100644
--- a/widgets/misc/e-paned.c
+++ b/widgets/misc/e-paned.c
@@ -240,6 +240,19 @@ paned_realize (GtkWidget *widget)
priv->toplevel_ready = TRUE;
}
+static gboolean
+paned_queue_resize_on_idle (gpointer user_data)
+{
+ GtkWidget *paned = user_data;
+
+ g_return_val_if_fail (paned != NULL, FALSE);
+
+ gtk_widget_queue_resize_no_redraw (paned);
+ g_object_unref (paned);
+
+ return FALSE;
+}
+
static void
paned_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
@@ -282,6 +295,12 @@ paned_size_allocate (GtkWidget *widget,
gtk_paned_set_position (GTK_PANED (paned), position);
paned->priv->sync_request = SYNC_REQUEST_NONE;
+
+ /* gtk_paned_set_position() calls queue_resize, which cannot
+ be called from size_allocate, thus call it on idle to take
+ the change in the effect.
+ */
+ g_idle_add (paned_queue_resize_on_idle, g_object_ref (paned));
}
static void