aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
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
parent19c5a959120eb2fe9e0ab61d5626d9e30b18102d (diff)
downloadgsoc2013-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')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c11
2 files changed, 17 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index f7ab9730b6..f58d868d42 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,11 @@
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.
+
+2001-10-20 Christopher James Lahey <clahey@ximian.com>
+
* gui/component/addressbook-component.c (owner_unset_cb):
Repeatedly call gtk_main_quit here as long as there is a main loop
around. This is an ugly hack around Ximian bug #11760.
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);