From cd41924de38e850c8bd82ebae346e3c7ee771a7d Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 3 Apr 2003 23:32:32 +0000 Subject: set "handle_popup" on the field to be TRUE if it's got focus, FALSE if 2003-04-03 Chris Toshok * gui/widgets/e-minicard-label.c (e_minicard_label_event): set "handle_popup" on the field to be TRUE if it's got focus, FALSE if not. svn path=/trunk/; revision=20665 --- addressbook/ChangeLog | 12 ++++++++++++ addressbook/gui/widgets/e-minicard-label.c | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 65d504ecc1..45b83071bc 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,15 @@ +2003-04-03 Chris Toshok + + * gui/widgets/e-minicard-label.c (e_minicard_label_event): set + "handle_popup" on the field to be TRUE if it's got focus, FALSE if + not. + +2003-04-03 Chris Toshok + + * gui/widgets/e-minicard-label.c (e_minicard_label_construct): + doh, set the im_context on the field name too so we get the Input + Method submenu in the contxt menu. + 2003-04-03 Chris Toshok * gui/widgets/e-minicard-label.c (e_minicard_label_construct): set diff --git a/addressbook/gui/widgets/e-minicard-label.c b/addressbook/gui/widgets/e-minicard-label.c index 93dfd68e55..e541fc7982 100644 --- a/addressbook/gui/widgets/e-minicard-label.c +++ b/addressbook/gui/widgets/e-minicard-label.c @@ -295,6 +295,7 @@ e_minicard_label_construct (GnomeCanvasItem *item) "use_ellipsis", TRUE, "fill_color", "black", "draw_background", FALSE, + "im_context", E_CANVAS (item->canvas)->im_context, NULL ); e_canvas_item_move_absolute(e_minicard_label->fieldname, 2, 1); @@ -369,6 +370,10 @@ e_minicard_label_event (GnomeCanvasItem *item, GdkEvent *event) NULL ); e_minicard_label->has_focus = FALSE; } + + g_object_set (e_minicard_label->field, + "handle_popup", e_minicard_label->has_focus, + NULL); } break; case GDK_BUTTON_PRESS: -- cgit