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
This commit is contained in:
Christopher James Lahey
2001-10-20 19:04:29 +00:00
committed by Chris Lahey
parent 19c5a95912
commit f9f86c3ee2
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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):

View File

@ -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);