[evolution-patches] Patch for #300970 (gnome bugzilla bugID)



Dear hpj,

Here is the new patch for #300970.
the related URL is:
http://bugzilla.gnome.org/show_bug.cgi?id=300970
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:38:53 -0000
@@ -1,3 +1,9 @@
+2005-04-17  Yu Mengjie  <meng-jie yu sun com>
+
+	* gui/widgets/e-minicard.c: (e_minicard_event):
+
+	Fixes #300970 (gnome bugzilla bugID)
+
 2005-04-04  Sivaiah Nallagatla <snallagatla novell com>
 
        * gui/component/addressbook.c (load_source_auth_cb)
Index: gui/widgets/e-minicard.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-minicard.c,v
retrieving revision 1.121
diff -u -p -r1.121 e-minicard.c
--- gui/widgets/e-minicard.c	6 Feb 2005 18:34:35 -0000	1.121
+++ gui/widgets/e-minicard.c	17 Apr 2005 15:38:54 -0000
@@ -682,6 +682,13 @@ e_minicard_event (GnomeCanvasItem *item,
 						view_index--;
 
 					model_index = e_sorter_sorted_to_model (E_SORTER (reflow->sorter), view_index);
+					if (reflow->items[model_index] == NULL) {
+						reflow->items[model_index] = e_reflow_model_incarnate (reflow->model, model_index, GNOME_CANVAS_GROUP (reflow));
+						g_object_set (reflow->items[model_index],
+							      "width", (double) reflow->column_width,
+							      NULL);
+
+					}
 					e_canvas_item_grab_focus (reflow->items[model_index], FALSE);
 					return TRUE;
 				}
@@ -701,6 +708,13 @@ e_minicard_event (GnomeCanvasItem *item,
 						view_index++;
 
 					model_index = e_sorter_sorted_to_model (E_SORTER (reflow->sorter), view_index);
+					if (reflow->items[model_index] == NULL) {
+						reflow->items[model_index] = e_reflow_model_incarnate (reflow->model, model_index, GNOME_CANVAS_GROUP (reflow));
+						g_object_set (reflow->items[model_index],
+							      "width", (double) reflow->column_width,
+							      NULL);
+
+					}
 					e_canvas_item_grab_focus(reflow->items[model_index], FALSE);
 					return TRUE;
 				}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]