[evolution-patches] fix for the bug #323499 [calendar]



Hi,
  Have attached the fix for the bug. Listen to changed signal from
GtkOptionMenu.

thanks, Chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.3045
diff -u -p -r1.3045 ChangeLog
--- ChangeLog	11 May 2006 09:30:10 -0000	1.3045
+++ ChangeLog	11 May 2006 13:02:59 -0000
@@ -1,3 +1,10 @@
+2006-05-11  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #323499
+	* gui/dialogs/recurrence-page.c: (interval_selection_done_cb),
+	(ending_selection_done_cb), (init_widgets): Listen to the
+	changed signal from the GtkOptionMenu.						    
+
 2006-04-20  Chenthill Palanisamy  <pchenthill novell com>
 
 	Fixes the events appearing in different timezone appear in
Index: gui/dialogs/recurrence-page.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/recurrence-page.c,v
retrieving revision 1.77
diff -u -p -r1.77 recurrence-page.c
--- gui/dialogs/recurrence-page.c	12 Feb 2006 21:53:32 -0000	1.77
+++ gui/dialogs/recurrence-page.c	11 May 2006 13:03:01 -0000
@@ -2088,7 +2088,7 @@ interval_value_changed_cb (GtkAdjustment
  * change the contents of the recurrence special widget.
  */
 static void
-interval_selection_done_cb (GtkMenuShell *menu_shell, gpointer data)
+interval_selection_done_cb (GtkOptionMenu *menu, gpointer data)
 {
 	RecurrencePage *rpage;
 
@@ -2103,7 +2103,7 @@ interval_selection_done_cb (GtkMenuShell
  * change the contents of the ending special widget.
  */
 static void
-ending_selection_done_cb (GtkMenuShell *menu_shell, gpointer data)
+ending_selection_done_cb (GtkOptionMenu *menu, gpointer data)
 {
 	RecurrencePage *rpage;
 
@@ -2306,7 +2306,6 @@ init_widgets (RecurrencePage *rpage)
 	RecurrencePagePrivate *priv;
 	ECalendar *ecal;
 	GtkAdjustment *adj;
-	GtkWidget *menu;
 	GtkTreeViewColumn *column;
 	GtkCellRenderer *cell_renderer;
 
@@ -2341,16 +2340,14 @@ init_widgets (RecurrencePage *rpage)
 			    rpage);
 
 	/* Recurrence units */
-
-	menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (priv->interval_unit));
-	g_signal_connect((menu), "selection_done",
+	
+	g_signal_connect(GTK_OPTION_MENU (priv->interval_unit), "changed",
 			    G_CALLBACK (interval_selection_done_cb),
 			    rpage);
 
 	/* Recurrence ending */
-
-	menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (priv->ending_menu));
-	g_signal_connect((menu), "selection_done",
+	
+	g_signal_connect(GTK_OPTION_MENU (priv->ending_menu), "changed",
 			    G_CALLBACK (ending_selection_done_cb), rpage);
 
 	/* Exception buttons */


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