[evolution-patches] Patch for #300968 (gnome bugzilla bugID)
- From: Mengjie Yu <Meng-Jie Yu Sun COM>
- To: Hans Petter Jansson <hpj ximian com>
- Cc: evolution-patches <evolution-patches lists ximian com>
- Subject: [evolution-patches] Patch for #300968 (gnome bugzilla bugID)
- Date: Mon, 18 Apr 2005 00:07:32 +0800
Dear hpj,
Here is the new patch for #300968.
the related URL is:
http://bugzilla.gnome.org/show_bug.cgi?id=300968
The patch for this bug is also available on the above URL.
It is about addressbook part.
Will you please help me to review it?
Thanks a lot.
Yours,
Mengjie
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1931
diff -u -p -r1.1931 ChangeLog
--- ChangeLog 8 Apr 2005 13:12:58 -0000 1.1931
+++ ChangeLog 17 Apr 2005 15:36:01 -0000
@@ -1,3 +1,12 @@
+2005-04-17 Yu Mengjie <meng-jie yu sun com>
+
+ * gui/widgets/e-minicard-view-widget.c:
+ (e_minicard_view_widget_class_init),
+ (e_minicard_view_widget_real_focus_in_event):
+ add focus_in_event function.
+
+ Fixes #300968 (gnome bugzilla bugID)
+
2005-04-04 Sivaiah Nallagatla <snallagatla novell com>
* gui/component/addressbook.c (load_source_auth_cb)
Index: gui/widgets/e-minicard-view-widget.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-minicard-view-widget.c,v
retrieving revision 1.33
diff -u -p -r1.33 e-minicard-view-widget.c
--- gui/widgets/e-minicard-view-widget.c 6 Apr 2004 14:39:29 -0000 1.33
+++ gui/widgets/e-minicard-view-widget.c 17 Apr 2005 15:36:03 -0000
@@ -38,6 +38,8 @@ static void e_minicard_view_widget_reflo
static void e_minicard_view_widget_size_allocate (GtkWidget *widget, GtkAllocation *allocation);
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;
@@ -158,6 +160,8 @@ e_minicard_view_widget_class_init (EMini
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;
@@ -438,3 +442,26 @@ e_minicard_view_widget_get_view
else
return 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);
+ if (reflow->count) {
+ int unsorted = e_sorter_sorted_to_model (E_SORTER (reflow->sorter), 0);
+
+ if (unsorted != -1)
+ canvas->focused_item = reflow->items [unsorted];
+ }
+ }
+
+ return GTK_WIDGET_CLASS(parent_class)->focus_in_event (widget, event);
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]