diff options
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard-label.c | 2 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard.c | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 19a16ea4c7..9a5f982f63 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2001-03-15 Dan Winship <danw@ximian.com> + + * gui/widgets/e-minicard-label.c (e_minicard_label_set_arg): + * gui/widgets/e-minicard.c (e_minicard_set_arg, e_minicard_event): + Update arguments to e_canvas_item_grab_focus. + 2001-03-13 Christopher James Lahey <clahey@ximian.com> * gui/component/addressbook.c (update_pixmaps): Fix a warning diff --git a/addressbook/gui/widgets/e-minicard-label.c b/addressbook/gui/widgets/e-minicard-label.c index 6795702454..01fad008df 100644 --- a/addressbook/gui/widgets/e-minicard-label.c +++ b/addressbook/gui/widgets/e-minicard-label.c @@ -145,7 +145,7 @@ e_minicard_label_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) break; case ARG_HAS_FOCUS: if (e_minicard_label->field && (GTK_VALUE_ENUM(*arg) != E_FOCUS_NONE)) - e_canvas_item_grab_focus(e_minicard_label->field); + e_canvas_item_grab_focus(e_minicard_label->field, FALSE); break; case ARG_FIELD: gnome_canvas_item_set( e_minicard_label->field, "text", GTK_VALUE_STRING (*arg), NULL ); diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index ec94d0fcb8..d6fa1a2068 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -237,7 +237,7 @@ e_minicard_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) } } else - e_canvas_item_grab_focus(item); + e_canvas_item_grab_focus(item, FALSE); break; case ARG_SELECTED: if (e_minicard->selected != GTK_VALUE_BOOL(*arg)) @@ -627,7 +627,7 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event) case GDK_BUTTON_PRESS: if (event->button.button == 1) { int ret_val = e_minicard_selected(e_minicard, event); - e_canvas_item_grab_focus(item); + e_canvas_item_grab_focus(item, TRUE); return ret_val; } else if (event->button.button == 3) { MinicardAndParent *mnp = g_new(MinicardAndParent, 1); |