aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-04-04 06:42:02 +0800
committerChris Toshok <toshok@src.gnome.org>2003-04-04 06:42:02 +0800
commit53c65079e3a8cf17e3795bf27c8fa6886af030e6 (patch)
tree385efb2bab1a9e872961ffeea888b39f92395952 /addressbook/gui
parent660514490cade113a6f4627ef138c38cddea8d8e (diff)
downloadgsoc2013-evolution-53c65079e3a8cf17e3795bf27c8fa6886af030e6.tar.gz
gsoc2013-evolution-53c65079e3a8cf17e3795bf27c8fa6886af030e6.tar.zst
gsoc2013-evolution-53c65079e3a8cf17e3795bf27c8fa6886af030e6.zip
set the im_context on the field's EText. (e_minicard_label_event): remove
2003-04-03 Chris Toshok <toshok@ximian.com> * gui/widgets/e-minicard-label.c (e_minicard_label_construct): set the im_context on the field's EText. (e_minicard_label_event): remove a huge swath of #if 0'd code. svn path=/trunk/; revision=20663
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/widgets/e-minicard-label.c47
1 files changed, 1 insertions, 46 deletions
diff --git a/addressbook/gui/widgets/e-minicard-label.c b/addressbook/gui/widgets/e-minicard-label.c
index 21ace85c60..93dfd68e55 100644
--- a/addressbook/gui/widgets/e-minicard-label.c
+++ b/addressbook/gui/widgets/e-minicard-label.c
@@ -308,6 +308,7 @@ e_minicard_label_construct (GnomeCanvasItem *item)
"fill_color", "black",
"editable", e_minicard_label->editable,
"draw_background", FALSE,
+ "im_context", E_CANVAS (item->canvas)->im_context,
NULL );
e_canvas_item_move_absolute(e_minicard_label->field, ( e_minicard_label->width / 2 + 2), 1);
@@ -376,52 +377,6 @@ e_minicard_label_event (GnomeCanvasItem *item, GdkEvent *event)
case GDK_ENTER_NOTIFY:
case GDK_LEAVE_NOTIFY: {
gboolean return_val;
-#if 0
- GnomeCanvasItem *field;
- ArtPoint p;
- double inv[6], affine[6];
-
- field = e_minicard_label->field;
- art_affine_identity (affine);
-
- if (field->xform != NULL) {
- if (field->object.flags & GNOME_CANVAS_ITEM_AFFINE_FULL) {
- art_affine_multiply (affine, affine, field->xform);
- } else {
- affine[4] += field->xform[0];
- affine[5] += field->xform[1];
- }
- }
-
- art_affine_invert (inv, affine);
- 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;
- 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;
- }
-#endif
g_signal_emit_by_name(e_minicard_label->field, "event", event, &return_val);
return return_val;
break;