[evolution-patches] Re: [Calendar] Fix for 327487
- From: Johnny Jacob <johnnyjacob gmail com>
- To: evolution-patches gnome org
- Subject: [evolution-patches] Re: [Calendar] Fix for 327487
- Date: Fri, 20 Jan 2006 15:16:10 +0530
HI
Updated the patch for Bug #327487 - Calendar Preferences broken.
Please review .
Thanks
Johnny
On 1/19/06, Johnny Jacob <johnnyjacob gmail com> wrote:
> 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.2947
diff -u -p -r1.2947 ChangeLog
--- calendar/ChangeLog 19 Jan 2006 03:56:54 -0000 1.2947
+++ calendar/ChangeLog 20 Jan 2006 09:42:45 -0000
@@ -1,3 +1,11 @@
+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.
+ (default_reminder_interval_changed): Hack to update the spin
+ button value
+
2006-01-19 Chenthill Palanisamy <pchenthill novell com>
Fixes #327293
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 20 Jan 2006 09:43:50 -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);
}
@@ -285,15 +285,20 @@ default_reminder_toggled (GtkToggleButto
static void
default_reminder_interval_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
{
- calendar_config_set_default_reminder_interval (
- e_dialog_spin_get_int (prefs->default_reminder_interval));
+ const gchar *str;
+ gdouble value;
+
+ str = gtk_entry_get_text (GTK_ENTRY (widget));
+ value = g_ascii_strtod (str, NULL);
+
+ calendar_config_set_default_reminder_interval (value);
}
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]