diff options
author | Milan Crha <mcrha@redhat.com> | 2009-08-04 21:04:02 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-08-04 21:04:02 +0800 |
commit | b6313289303f2263649c70ea477e04aea4a994ec (patch) | |
tree | 36b4435a060aca6425e717b1b0ddd29efb8a0712 /calendar/gui/dialogs/cal-prefs-dialog.c | |
parent | bc301a8c3784610a0c55c9fb5056ec63ca574f4d (diff) | |
download | gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.gz gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.bz2 gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.lz gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.xz gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.tar.zst gsoc2013-evolution-b6313289303f2263649c70ea477e04aea4a994ec.zip |
Bug #205137 - Configurable date formats in components
Diffstat (limited to 'calendar/gui/dialogs/cal-prefs-dialog.c')
-rw-r--r-- | calendar/gui/dialogs/cal-prefs-dialog.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index 2c19acaadd..2fc17202cc 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -31,6 +31,7 @@ #include "../calendar-config.h" #include "cal-prefs-dialog.h" #include <widgets/misc/e-dateedit.h> +#include "e-util/e-datetime-format.h" #include <e-util/e-dialog-widgets.h> #include <e-util/e-util-private.h> #include <glib/gi18n.h> @@ -779,7 +780,7 @@ calendar_prefs_dialog_construct (CalendarPrefsDialog *prefs) ECalConfig *ec; ECalConfigTargetPrefs *target; gint i; - GtkWidget *toplevel; + GtkWidget *toplevel, *table; GSList *l; const gchar *working_day_names[] = { "sun_button", @@ -859,6 +860,11 @@ calendar_prefs_dialog_construct (CalendarPrefsDialog *prefs) toplevel = e_config_create_widget ((EConfig *)ec); gtk_container_add (GTK_CONTAINER (prefs), toplevel); + /* date/time format */ + table = glade_xml_get_widget (gui, "datetime_format_table"); + e_datetime_format_add_setup_widget (table, 0, "calendar", "table", DTFormatKindDateTime, _("Time and date:")); + e_datetime_format_add_setup_widget (table, 1, "calendar", "table", DTFormatKindDate, _("Date only:")); + show_config (prefs); /* FIXME: weakref? */ setup_changes (prefs); |