From 4ac908c6ffa505ae3978eec809bf50fc7cb88e90 Mon Sep 17 00:00:00 2001 From: Chris Lahey Date: Fri, 14 Jan 2000 05:18:59 +0000 Subject: Added selection and clipboard support. Added up and down arrow keys. Fixed * widgets/e-text-event-processor-types.h, widgets/e-text-event-processor-emacs-like.c, widgets/e-text.c, widgets/e-text.h: Added selection and clipboard support. Added up and down arrow keys. Fixed choice of font colors for the selection to be based on the current style. * widgets/e-minicard.c: Caused a click to grab the focus. Changed the fake information added. * widgets/e-minicard-label.c: Forward mouse events to the field EText item. svn path=/trunk/; revision=1568 --- addressbook/gui/widgets/e-minicard.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/widgets/e-minicard.c') diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index 52d241d11e..bef929b36c 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -279,7 +279,7 @@ e_minicard_realize (GnomeCanvasItem *item) "y", e_minicard->height, "width", e_minicard->width - 4.0, "fieldname", "Email:", - "field", "clahey@helixcode.com", + "field", "clahey@address.com", NULL ); e_minicard->fields = g_list_append( e_minicard->fields, new_item); @@ -349,6 +349,11 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event) } } break; + case GDK_BUTTON_PRESS: + if (event->button.button == 1) { + gnome_canvas_item_grab_focus(item); + } + break; case GDK_KEY_PRESS: if (event->key.length == 1 && event->key.string[0] == '\t') { GList *list; -- cgit