[evolution-patches] A small patch related to widget and calendar



Rodrigo and JPR,
Here is a small patch for e-cell-date-edit.c. I had done sth. similar to e-dateedit.c and got your approval and commited in HEAD before.
   Thanks!
      Harry
Index: widgets/misc/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v
retrieving revision 1.252
diff -u -r1.252 ChangeLog
--- widgets/misc/ChangeLog	5 Dec 2003 02:01:46 -0000	1.252
+++ widgets/misc/ChangeLog	16 Dec 2003 09:37:40 -0000
@@ -1,3 +1,8 @@
+2003-12-16  Harry Lu  <harry lu sun com>
+
+	* e-cell-date-edit.c: (e_cell_date_edit_do_popup): call
+	gdk_window_focus() so that keyboard works correctly.
+
 2003-12-04  Harry Lu <harry lu sun com> 
 
 	Fix for bugzilla bug #51624 and #51627.
Index: widgets/misc/e-cell-date-edit.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-cell-date-edit.c,v
retrieving revision 1.19
diff -u -r1.19 e-cell-date-edit.c
--- widgets/misc/e-cell-date-edit.c	25 Feb 2003 07:03:46 -0000	1.19
+++ widgets/misc/e-cell-date-edit.c	16 Dec 2003 09:37:42 -0000
@@ -450,11 +450,11 @@
 		time = event->key.time;
 	}
 
-	gdk_keyboard_grab (ecde->popup_window->window, TRUE, time);
 	gtk_grab_add (ecde->popup_window);
 
 	/* Set the focus to the first widget. */
 	gtk_widget_grab_focus (ecde->time_entry);
+	gdk_window_focus (ecde->popup_window->window, GDK_CURRENT_TIME);
 
 	return TRUE;
 }


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