aboutsummaryrefslogtreecommitdiff
path: root/src/settings-shared.h
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-02-28 08:28:17 -0500
committerMichael Terry <mike@mterry.name>2011-02-28 08:28:17 -0500
commite7442e09fecff816aa195e8aaff27192d3c64b6b (patch)
treeb53540826e884fec0e4cf97ddb5e086e0a5a634f /src/settings-shared.h
parent6b80729a4f344068c520b262ae82b3c5d903c698 (diff)
parentbb010c63b54c58a6dc63f86d6c0338d9502328bc (diff)
downloadayatana-indicator-datetime-e7442e09fecff816aa195e8aaff27192d3c64b6b.tar.gz
ayatana-indicator-datetime-e7442e09fecff816aa195e8aaff27192d3c64b6b.tar.bz2
ayatana-indicator-datetime-e7442e09fecff816aa195e8aaff27192d3c64b6b.zip
* New upstream release.0.1.95-0ubuntu1
- New preference dialog - Improved EDS support - Improved timezone support * debian/control: - Update Build-Depends
Diffstat (limited to 'src/settings-shared.h')
-rw-r--r--src/settings-shared.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/settings-shared.h b/src/settings-shared.h
new file mode 100644
index 0000000..df2260e
--- /dev/null
+++ b/src/settings-shared.h
@@ -0,0 +1,55 @@
+/*
+An indicator to show date and time information.
+
+Copyright 2010 Canonical Ltd.
+
+Authors:
+ Ted Gould <ted@canonical.com>
+
+This program is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License version 3, as published
+by the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranties of
+MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
+PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __DATETIME_SETTINGS_SHARED_H__
+#define __DATETIME_SETTINGS_SHARED_H__
+
+#define SETTINGS_INTERFACE "com.canonical.indicator.datetime"
+#define SETTINGS_SHOW_CLOCK_S "show-clock"
+#define SETTINGS_TIME_FORMAT_S "time-format"
+#define SETTINGS_SHOW_SECONDS_S "show-seconds"
+#define SETTINGS_SHOW_DAY_S "show-day"
+#define SETTINGS_SHOW_DATE_S "show-date"
+#define SETTINGS_CUSTOM_TIME_FORMAT_S "custom-time-format"
+#define SETTINGS_SHOW_CALENDAR_S "show-calendar"
+#define SETTINGS_SHOW_WEEK_NUMBERS_S "show-week-numbers"
+#define SETTINGS_SHOW_EVENTS_S "show-events"
+#define SETTINGS_SHOW_LOCATIONS_S "show-locations"
+#define SETTINGS_LOCATIONS_S "locations"
+
+enum {
+ SETTINGS_TIME_LOCALE = 0,
+ SETTINGS_TIME_12_HOUR = 1,
+ SETTINGS_TIME_24_HOUR = 2,
+ SETTINGS_TIME_CUSTOM = 3
+};
+
+/* TRANSLATORS: A format string for the strftime function for
+ a clock showing 12-hour time without seconds. */
+#define DEFAULT_TIME_12_FORMAT N_("%l:%M %p")
+
+/* TRANSLATORS: A format string for the strftime function for
+ a clock showing 24-hour time without seconds. */
+#define DEFAULT_TIME_24_FORMAT N_("%H:%M")
+
+#define DEFAULT_TIME_FORMAT DEFAULT_TIME_12_FORMAT
+
+#endif