[evolution-patches] [Calendar] Fix for 327487



Hi

Worked on BUg #327487 - Calendar Preferences broken

Please review.

Thanks
Johnny
Index: calendar/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2946
diff -u -p -r1.2946 ChangeLog
--- calendar/ChangeLog	18 Jan 2006 14:26:31 -0000	1.2946
+++ calendar/ChangeLog	19 Jan 2006 04:57:51 -0000
@@ -1,3 +1,9 @@
+2006-01-19  Johnny Jacob  <johnnyjacob gmail com>
+
+	* gui/dialogs/cal-prefs-dialog.c (default_reminder_units_changed),
+	(time_divisions_changed), (week_start_day_changed) : Use 
+	e_dialog_combo_box functions to access the widgets.
+
 2006-01-17  P S Chakravarthi <pchakravarthi novell com>
 
 	* gui/e-week-view.c : added some code in e_week_view_on_button_press ()
Index: calendar/gui/dialogs/cal-prefs-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/cal-prefs-dialog.c,v
retrieving revision 1.48
diff -u -p -r1.48 cal-prefs-dialog.c
--- calendar/gui/dialogs/cal-prefs-dialog.c	4 Jan 2006 02:04:15 -0000	1.48
+++ calendar/gui/dialogs/cal-prefs-dialog.c	19 Jan 2006 04:58:18 -0000
@@ -188,7 +188,7 @@ week_start_day_changed (GtkWidget *widge
 {
 	int week_start_day;
 
-	week_start_day = e_dialog_option_menu_get (prefs->week_start_day, week_start_day_map);
+	week_start_day = e_dialog_combo_box_get (prefs->week_start_day, week_start_day_map);
 	calendar_config_set_week_start_day (week_start_day);
 }
 
@@ -210,7 +210,7 @@ time_divisions_changed (GtkWidget *widge
 {
 	int time_divisions;
 
-	time_divisions = e_dialog_option_menu_get (prefs->time_divisions, time_division_map);
+	time_divisions = e_dialog_combo_box_get (prefs->time_divisions, time_division_map);
 	calendar_config_set_time_divisions (time_divisions);
 }
 
@@ -293,7 +293,7 @@ static void
 default_reminder_units_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
 {
 	calendar_config_set_default_reminder_units (
-		e_dialog_option_menu_get (prefs->default_reminder_units, default_reminder_units_map));
+		e_dialog_combo_box_get (prefs->default_reminder_units, default_reminder_units_map));
 }
 
 static void


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