aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMengjie Yu <meng-jie.yu@sun.com>2005-03-04 17:16:36 +0800
committerHarry Lu <haip@src.gnome.org>2005-03-04 17:16:36 +0800
commitc9c7749cb44a82a39787782665f463355fe1ab33 (patch)
tree01a9f3a93b53b5a75d7ee93068b0bb67f6f69085 /widgets/misc
parentfad9966e989b9191dcb51d3714b7f00d8001f069 (diff)
downloadgsoc2013-evolution-c9c7749cb44a82a39787782665f463355fe1ab33.tar
gsoc2013-evolution-c9c7749cb44a82a39787782665f463355fe1ab33.tar.gz
gsoc2013-evolution-c9c7749cb44a82a39787782665f463355fe1ab33.tar.bz2
gsoc2013-evolution-c9c7749cb44a82a39787782665f463355fe1ab33.tar.lz
gsoc2013-evolution-c9c7749cb44a82a39787782665f463355fe1ab33.tar.xz
gsoc2013-evolution-c9c7749cb44a82a39787782665f463355fe1ab33.tar.zst
gsoc2013-evolution-c9c7749cb44a82a39787782665f463355fe1ab33.zip
don't allow to drag the first line of mini reflows.
2005-03-02 Mengjie Yu <meng-jie.yu@sun.com> * gal/widgets/e-reflow.c: (e_reflow_event):don't allow to drag the first line of mini reflows. Fixes #73207 svn path=/trunk/; revision=28952
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-reflow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/misc/e-reflow.c b/widgets/misc/e-reflow.c
index a6888a11a6..cd05fd017f 100644
--- a/widgets/misc/e-reflow.c
+++ b/widgets/misc/e-reflow.c
@@ -921,6 +921,9 @@ e_reflow_event (GnomeCanvasItem *item, GdkEvent *event)
max_x = E_REFLOW_BORDER_WIDTH;
max_x += (reflow->column_width + E_REFLOW_FULL_GUTTER) * reflow->column_count;
if ( button->y >= E_REFLOW_BORDER_WIDTH && button->y <= reflow->height - E_REFLOW_BORDER_WIDTH && n_x < E_REFLOW_FULL_GUTTER && max_x > button->x ) {
+ /* don't allow to drag the first line*/
+ if (e_reflow_pick_line(reflow, button->x) == 0)
+ return TRUE;
reflow->which_column_dragged = e_reflow_pick_line(reflow, button->x);
reflow->start_x = reflow->which_column_dragged * (reflow->column_width + E_REFLOW_FULL_GUTTER) - E_REFLOW_DIVIDER_WIDTH / 2;
reflow->temp_column_width = reflow->column_width;