diff options
author | Chris Toshok <toshok@src.gnome.org> | 2004-04-06 22:39:29 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-04-06 22:39:29 +0800 |
commit | 2312fa3709b198aa8b0f515ec661b3494bb32012 (patch) | |
tree | fdcff9e10549b418670984434531eda2a7a2b481 /addressbook | |
parent | b732ab2d9d5e46ee20657bb891a90c31e4060e89 (diff) | |
download | gsoc2013-evolution-2312fa3709b198aa8b0f515ec661b3494bb32012.tar gsoc2013-evolution-2312fa3709b198aa8b0f515ec661b3494bb32012.tar.gz gsoc2013-evolution-2312fa3709b198aa8b0f515ec661b3494bb32012.tar.bz2 gsoc2013-evolution-2312fa3709b198aa8b0f515ec661b3494bb32012.tar.lz gsoc2013-evolution-2312fa3709b198aa8b0f515ec661b3494bb32012.tar.xz gsoc2013-evolution-2312fa3709b198aa8b0f515ec661b3494bb32012.tar.zst gsoc2013-evolution-2312fa3709b198aa8b0f515ec661b3494bb32012.zip |
revert unapproved patch
svn path=/trunk/; revision=25335
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard-view-widget.c | 22 |
2 files changed, 1 insertions, 28 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 1da163d8ef..fa284bf52d 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,14 +1,9 @@ 2004-04-06 Hao Sheng <hao.sheng@sun.com> - * gui/widgets/e-minicard.c : + * gui/widgets/e-minicard.c: (e_minicard_event) : implement keyboard navigation(TAB/shift+TAB) (activaite_editor) : add a new function to activiate contact editor for support "Enter" key - * gui/widgets/e-minicard-view-widget.c : - (e_minicard_view_widget_class_init) : set the default focus at - initialization - (e_minicard_view_widget_real_focus_in_event) : set the first item - be focused as default Fixes #55056 diff --git a/addressbook/gui/widgets/e-minicard-view-widget.c b/addressbook/gui/widgets/e-minicard-view-widget.c index 1d7b9f55fc..ff1bdc1f06 100644 --- a/addressbook/gui/widgets/e-minicard-view-widget.c +++ b/addressbook/gui/widgets/e-minicard-view-widget.c @@ -39,8 +39,6 @@ static void e_minicard_view_widget_size_allocate (GtkWidget *widget, GtkAllocati static void e_minicard_view_widget_style_set (GtkWidget *widget, GtkStyle *previous_style); static void e_minicard_view_widget_realize (GtkWidget *widget); -static gboolean e_minicard_view_widget_real_focus_in_event (GtkWidget *widget, GdkEventFocus *event); - static ECanvasClass *parent_class = NULL; /* The arguments we take */ @@ -160,7 +158,6 @@ e_minicard_view_widget_class_init (EMinicardViewWidgetClass *klass) widget_class->style_set = e_minicard_view_widget_style_set; widget_class->realize = e_minicard_view_widget_realize; widget_class->size_allocate = e_minicard_view_widget_size_allocate; - widget_class->focus_in_event = e_minicard_view_widget_real_focus_in_event; canvas_class->reflow = e_minicard_view_widget_reflow; @@ -169,25 +166,6 @@ e_minicard_view_widget_class_init (EMinicardViewWidgetClass *klass) klass->right_click = NULL; } -static gboolean -e_minicard_view_widget_real_focus_in_event(GtkWidget *widget, GdkEventFocus *event) -{ - GnomeCanvas *canvas; - EMinicardViewWidget *view; - - canvas = GNOME_CANVAS (widget); - view = E_MINICARD_VIEW_WIDGET(widget); - - if (!canvas->focused_item) { - EReflow *reflow = E_REFLOW (view->emv); - int unsorted = e_sorter_sorted_to_model (E_SORTER (reflow->sorter), 0); - - canvas->focused_item = reflow->items [unsorted]; - } - - return GTK_WIDGET_CLASS(parent_class)->focus_in_event (widget, event); - } - static void e_minicard_view_widget_init (EMinicardViewWidget *view) { |