aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-reflow.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-06-06 03:35:13 +0800
committerChris Lahey <clahey@src.gnome.org>2002-06-06 03:35:13 +0800
commit1e1f118e64f9ee4205daecced6fcbba77fc1abbb (patch)
tree7fdea44eca3e13846f9c767fa448606af2d3997c /widgets/misc/e-reflow.c
parent7c0ae30997a173f4f6411123fdef2db9512ad4a4 (diff)
downloadgsoc2013-evolution-1e1f118e64f9ee4205daecced6fcbba77fc1abbb.tar.gz
gsoc2013-evolution-1e1f118e64f9ee4205daecced6fcbba77fc1abbb.tar.zst
gsoc2013-evolution-1e1f118e64f9ee4205daecced6fcbba77fc1abbb.zip
Bumped the version number to 0.19.99.17.
2002-06-05 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 0.19.99.17. * gal/widgets/e-reflow.c, gal/widgets/e-reflow.h (e_reflow_selection_event_real): Made this function handle GDK_BUTTON_RELEASE. Added a maybe_in_drag variable that the API user can set to 0 to indicate that a drag has occurred. svn path=/trunk/; revision=17122
Diffstat (limited to 'widgets/misc/e-reflow.c')
-rw-r--r--widgets/misc/e-reflow.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/widgets/misc/e-reflow.c b/widgets/misc/e-reflow.c
index 051cb3d2ab..fa0fd42de8 100644
--- a/widgets/misc/e-reflow.c
+++ b/widgets/misc/e-reflow.c
@@ -1216,7 +1216,13 @@ e_reflow_selection_event_real (EReflow *reflow, GnomeCanvasItem *item, GdkEvent
case 1: /* Fall through. */
case 2:
row = er_find_item (reflow, item);
- e_selection_model_do_something(reflow->selection, row, 0, event->button.state);
+ if (event->button.button == 1) {
+ reflow->maybe_did_something =
+ e_selection_model_maybe_do_something(reflow->selection, row, 0, event->button.state);
+ reflow->maybe_in_drag = TRUE;
+ } else {
+ e_selection_model_do_something(reflow->selection, row, 0, event->button.state);
+ }
break;
case 3:
row = er_find_item (reflow, item);
@@ -1227,6 +1233,17 @@ e_reflow_selection_event_real (EReflow *reflow, GnomeCanvasItem *item, GdkEvent
break;
}
break;
+ case GDK_BUTTON_RELEASE:
+ if (event->button.button == 1) {
+ if (reflow->maybe_in_drag) {
+ reflow->maybe_in_drag = FALSE;
+ if (!reflow->maybe_did_something) {
+ row = er_find_item (reflow, item);
+ e_selection_model_do_something(reflow->selection, row, 0, event->button.state);
+ }
+ }
+ }
+ break;
case GDK_KEY_PRESS:
return_val = e_selection_model_key_press(reflow->selection, (GdkEventKey *) event);
break;
@@ -1320,6 +1337,10 @@ e_reflow_init (EReflow *reflow)
reflow->need_height_update = FALSE;
reflow->need_column_resize = FALSE;
+ reflow->need_reflow_columns = FALSE;
+
+ reflow->maybe_did_something = FALSE;
+ reflow->maybe_in_drag = FALSE;
reflow->default_cursor_shown = TRUE;
reflow->arrow_cursor = NULL;