aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-minicard-view.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-21 03:04:29 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-21 03:04:29 +0800
commitf9f86c3ee2ffdda05bcc06c997710e9af8218dbf (patch)
treef167c5c3d4baaa9d8b67f461140a315c4848eecb /addressbook/gui/widgets/e-minicard-view.c
parent19c5a959120eb2fe9e0ab61d5626d9e30b18102d (diff)
downloadgsoc2013-evolution-f9f86c3ee2ffdda05bcc06c997710e9af8218dbf.tar.gz
gsoc2013-evolution-f9f86c3ee2ffdda05bcc06c997710e9af8218dbf.tar.zst
gsoc2013-evolution-f9f86c3ee2ffdda05bcc06c997710e9af8218dbf.zip
Handle focus_change in event by selecting that contact. Fixes Ximian bug
2001-10-20 Christopher James Lahey <clahey@ximian.com> * gui/widgets/e-minicard-view.c (e_minicard_view_selection_event): Handle focus_change in event by selecting that contact. Fixes Ximian bug #3024. svn path=/trunk/; revision=13825
Diffstat (limited to 'addressbook/gui/widgets/e-minicard-view.c')
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c
index fe3cf42206..70e873f9e2 100644
--- a/addressbook/gui/widgets/e-minicard-view.c
+++ b/addressbook/gui/widgets/e-minicard-view.c
@@ -287,6 +287,17 @@ e_minicard_view_selection_event (EReflow *reflow, GnomeCanvasItem *item, GdkEven
}
switch (event->type) {
+ case GDK_FOCUS_CHANGE:
+ if (event->focus_change.in) {
+ int i;
+ for (i = 0; i < reflow->count; i++) {
+ if (reflow->items[i] == item) {
+ e_selection_model_maybe_do_something(reflow->selection, i, 0, 0);
+ break;
+ }
+ }
+ }
+ break;
case GDK_BUTTON_PRESS:
if (event->button.button == 3) {
return_val = e_addressbook_reflow_adapter_right_click (view->adapter, event, reflow->selection);