aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/minicard/e-minicard-label.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-01-26 19:26:07 +0800
committerChris Lahey <clahey@src.gnome.org>2000-01-26 19:26:07 +0800
commitbbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d (patch)
tree84869ce42558686480e2d03c82e7aebc7f6fdb77 /addressbook/gui/minicard/e-minicard-label.c
parenteb1bc09da68d0b049e95ea3ef30cee798445b857 (diff)
downloadgsoc2013-evolution-bbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d.tar
gsoc2013-evolution-bbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d.tar.gz
gsoc2013-evolution-bbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d.tar.bz2
gsoc2013-evolution-bbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d.tar.lz
gsoc2013-evolution-bbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d.tar.xz
gsoc2013-evolution-bbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d.tar.zst
gsoc2013-evolution-bbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d.zip
Added an arrow cursor for the draggable columns. Made the clickable column
2000-01-27 Christopher James Lahey <clahey@helixcode.com> * widgets/e-reflow.h, widgets/e-reflow.c: Added an arrow cursor for the draggable columns. Made the clickable column area larger. * widgets/e-text.h, widgets/e-text.c: Added an I beam cursor for the text item when it is editable. * widgets/e-minicard-label.c: Forward enter and leave notifications to the contained editable text item. svn path=/trunk/; revision=1647
Diffstat (limited to 'addressbook/gui/minicard/e-minicard-label.c')
-rw-r--r--addressbook/gui/minicard/e-minicard-label.c28
1 files changed, 22 insertions, 6 deletions
diff --git a/addressbook/gui/minicard/e-minicard-label.c b/addressbook/gui/minicard/e-minicard-label.c
index 0c4078f69f..2b0fb3faf8 100644
--- a/addressbook/gui/minicard/e-minicard-label.c
+++ b/addressbook/gui/minicard/e-minicard-label.c
@@ -335,12 +335,14 @@ e_minicard_label_event (GnomeCanvasItem *item, GdkEvent *event)
break;
case GDK_BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
- case GDK_MOTION_NOTIFY: {
+ case GDK_MOTION_NOTIFY:
+ case GDK_ENTER_NOTIFY:
+ case GDK_LEAVE_NOTIFY: {
GnomeCanvasItem *field;
ArtPoint p;
double inv[6], affine[6];
gboolean return_val;
-
+
field = e_minicard_label->field;
art_affine_identity (affine);
@@ -354,26 +356,40 @@ e_minicard_label_event (GnomeCanvasItem *item, GdkEvent *event)
}
art_affine_invert (inv, affine);
- if (event->type == GDK_MOTION_NOTIFY) {
+ switch(event->type) {
+ case GDK_MOTION_NOTIFY:
p.x = event->motion.x;
p.y = event->motion.y;
art_affine_point (&p, &p, inv);
event->motion.x = p.x;
event->motion.y = p.y;
- } else {
+ break;
+ case GDK_BUTTON_PRESS:
+ case GDK_BUTTON_RELEASE:
p.x = event->button.x;
p.y = event->button.y;
art_affine_point (&p, &p, inv);
event->button.x = p.x;
event->button.y = p.y;
+ break;
+ case GDK_ENTER_NOTIFY:
+ case GDK_LEAVE_NOTIFY:
+ p.x = event->crossing.x;
+ p.y = event->crossing.y;
+ art_affine_point (&p, &p, inv);
+ event->crossing.x = p.x;
+ event->crossing.y = p.y;
+ break;
+ default:
+ break;
}
gtk_signal_emit_by_name(GTK_OBJECT(e_minicard_label->field), "event", event, &return_val);
return return_val;
break;
}
- default:
- break;
+ default:
+ break;
}
if (GNOME_CANVAS_ITEM_CLASS( parent_class )->event)