[gnumeric] Fixed expression range cursor behavior. [#664852]
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fixed expression range cursor behavior. [#664852]
- Date: Sat, 26 Nov 2011 08:00:50 +0000 (UTC)
commit e7b609d18e2b24969b77754c8cb08e53a2190a57
Author: Jean Brefort <jean brefort normalesup org>
Date: Sat Nov 26 09:00:07 2011 +0100
Fixed expression range cursor behavior. [#664852]
ChangeLog | 6 ++++++
NEWS | 3 +++
src/item-cursor.c | 6 ++++--
3 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4480f0a..5922754 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-11-26 Jean Brefort <jean brefort normalesup org>
+
+ * src/item-cursor.c (item_cursor_enter_notify),
+ (item_cursor_class_init): fixed expression range cursor behavior.
+ [#664852]
+
2011-11-24 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/gnm-pane.h (gnm_pane_expr_cursor_bound_set): change argument of
diff --git a/NEWS b/NEWS
index 6a1a712..b1563bc 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,9 @@ Gnumeric 1.11.1
Andreas:
* Show range selection cursors even while selecting new regions
+Jean:
+ * Fixed expression range cursor behavior. [#664852]
+
Morten:
* Build fixes relating to embedded ui files [#664828]
diff --git a/src/item-cursor.c b/src/item-cursor.c
index e39af50..ad2a879 100644
--- a/src/item-cursor.c
+++ b/src/item-cursor.c
@@ -1369,8 +1369,10 @@ item_cursor_enter_notify (GocItem *item, double x_, double y_)
{
ItemCursor *ic = ITEM_CURSOR (item);
gint64 x = x_ * item->canvas->pixels_per_unit, y = y_ * item->canvas->pixels_per_unit;
- if (ic->style == ITEM_CURSOR_EXPR_RANGE)
+ if (ic->style == ITEM_CURSOR_EXPR_RANGE) {
gnm_widget_set_cursor_type (GTK_WIDGET (item->canvas), GDK_ARROW);
+ goc_item_invalidate (item);
+ }
else if (ic->style == ITEM_CURSOR_SELECTION)
item_cursor_set_cursor (item->canvas, ic, x, y);
return FALSE;
@@ -1457,7 +1459,7 @@ item_cursor_class_init (GObjectClass *gobject_klass)
item_klass->button_released = item_cursor_button_released;
item_klass->motion = item_cursor_motion;
item_klass->enter_notify = item_cursor_enter_notify;
- item_klass->enter_notify = item_cursor_leave_notify;
+ item_klass->leave_notify = item_cursor_leave_notify;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]