[evolution-patches] patch fix #73207



hi,hpj

Here is the patch for #73207. It is about gal.
the related URL is:
http://bugzilla.ximian.com/show_bug.cgi?id=73207

Will you please help me to review it?

Thanks a lot.

Yours,
Mengjie

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gal/ChangeLog,v
retrieving revision 1.911
diff -u -p -r1.911 ChangeLog
--- ChangeLog	28 Feb 2005 23:14:22 -0000	1.911
+++ ChangeLog	2 Mar 2005 10:45:52 -0000
@@ -1,3 +1,10 @@
+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
+
 2005-02-28  JP Rosevear  <jpr novell com>
 
 	* configure.in: bump version
? docs/gal-api.html
? gal/widgets/.e-reflow.c.swp
Index: gal/widgets/e-reflow.c
===================================================================
RCS file: /cvs/gnome/gal/gal/widgets/e-reflow.c,v
retrieving revision 1.54
diff -u -p -r1.54 e-reflow.c
--- gal/widgets/e-reflow.c	10 Jun 2004 17:01:14 -0000	1.54
+++ gal/widgets/e-reflow.c	2 Mar 2005 10:45:58 -0000
@@ -922,6 +922,9 @@ e_reflow_event (GnomeCanvasItem *item, G
 						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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]