diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-21 03:04:29 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-21 03:04:29 +0800 |
commit | f9f86c3ee2ffdda05bcc06c997710e9af8218dbf (patch) | |
tree | f167c5c3d4baaa9d8b67f461140a315c4848eecb /addressbook/gui | |
parent | 19c5a959120eb2fe9e0ab61d5626d9e30b18102d (diff) | |
download | gsoc2013-evolution-f9f86c3ee2ffdda05bcc06c997710e9af8218dbf.tar gsoc2013-evolution-f9f86c3ee2ffdda05bcc06c997710e9af8218dbf.tar.gz gsoc2013-evolution-f9f86c3ee2ffdda05bcc06c997710e9af8218dbf.tar.bz2 gsoc2013-evolution-f9f86c3ee2ffdda05bcc06c997710e9af8218dbf.tar.lz gsoc2013-evolution-f9f86c3ee2ffdda05bcc06c997710e9af8218dbf.tar.xz 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')
-rw-r--r-- | addressbook/gui/widgets/e-minicard-view.c | 11 |
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); |