diff options
Diffstat (limited to 'widgets/e-paned/e-hpaned.c')
-rw-r--r-- | widgets/e-paned/e-hpaned.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/widgets/e-paned/e-hpaned.c b/widgets/e-paned/e-hpaned.c index 5f2e451447..e003d5a7eb 100644 --- a/widgets/e-paned/e-hpaned.c +++ b/widgets/e-paned/e-hpaned.c @@ -423,10 +423,20 @@ e_hpaned_motion (GtkWidget *widget, if (paned->in_drag) { - gint size = x - GTK_CONTAINER (paned)->border_width - paned->handle_size / 2; - + gint size; + gint new_child1_size; + + size = x - GTK_CONTAINER (paned)->border_width - paned->handle_size / 2; + + new_child1_size = CLAMP (e_paned_quantized_size(paned, size), + paned->min_position, + paned->max_position); + + if (new_child1_size == paned->child1_size) + return TRUE; + e_hpaned_xor_line (paned); - paned->child1_size = CLAMP (e_paned_quantized_size(paned, size), paned->min_position, paned->max_position); + paned->child1_size = new_child1_size; paned->child1_real_size = paned->child1_size; e_hpaned_xor_line (paned); } |