diff options
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard-view.c | 11 |
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); |