aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/cal-prefs-dialog.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-02 04:32:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-11-05 02:18:34 +0800
commita2e309c2a1735bd68b315aa971388e20db3a8621 (patch)
treed9da4a5546d45406b693e2893363a911b7eddd4b /calendar/gui/dialogs/cal-prefs-dialog.c
parent6fdbedf62c34a78d403d0376a4403b2196da0385 (diff)
downloadgsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.gz
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.bz2
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.lz
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.xz
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.zst
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.zip
Rename CalUnits to EDurationType.
And move the definition to e-util-enums.h so we get a GType for it.
Diffstat (limited to 'calendar/gui/dialogs/cal-prefs-dialog.c')
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c
index 6316211c8a..f404d08927 100644
--- a/calendar/gui/dialogs/cal-prefs-dialog.c
+++ b/calendar/gui/dialogs/cal-prefs-dialog.c
@@ -45,12 +45,12 @@ static const gint time_division_map[] = {
/* The following two are kept separate in case we need to re-order each menu individually */
static const gint hide_completed_units_map[] = {
- CAL_MINUTES, CAL_HOURS, CAL_DAYS, -1
+ E_DURATION_MINUTES, E_DURATION_HOURS, E_DURATION_DAYS, -1
};
/* same is used for Birthdays & Anniversaries calendar */
static const gint default_reminder_units_map[] = {
- CAL_MINUTES, CAL_HOURS, CAL_DAYS, -1
+ E_DURATION_MINUTES, E_DURATION_HOURS, E_DURATION_DAYS, -1
};
static GtkVBoxClass *parent_class = NULL;
@@ -331,7 +331,7 @@ ba_reminder_interval_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
static void
ba_reminder_units_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
{
- CalUnits units = e_dialog_combo_box_get (prefs->ba_reminder_units, default_reminder_units_map);
+ EDurationType units = e_dialog_combo_box_get (prefs->ba_reminder_units, default_reminder_units_map);
calendar_config_set_ba_reminder (NULL, NULL, &units);
}
@@ -451,7 +451,7 @@ setup_changes (CalendarPrefsDialog *prefs)
static void
show_task_list_config (CalendarPrefsDialog *prefs)
{
- CalUnits units;
+ EDurationType units;
gboolean hide_completed_tasks;
/* Hide Completed Tasks. */
@@ -517,7 +517,7 @@ show_config (CalendarPrefsDialog *prefs)
{
gint time_divisions;
gboolean set = FALSE;
- CalUnits units;
+ EDurationType units;
gint interval;
/* Day's second zone */