From ea9ddbaa810db9fa91969afb693c4d27778a0a6d Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Sat, 7 May 2011 12:31:24 -0400 Subject: Import from lp:indicator-datetime --- data/Makefile.am | 26 + data/com.canonical.indicator.datetime.gschema.xml | 111 ++++ data/datetime-dialog.ui | 774 ++++++++++++++++++++++ data/indicator-datetime-preferences.desktop.in | 14 + data/indicator-datetime.service.in | 3 + 5 files changed, 928 insertions(+) create mode 100644 data/Makefile.am create mode 100644 data/com.canonical.indicator.datetime.gschema.xml create mode 100644 data/datetime-dialog.ui create mode 100644 data/indicator-datetime-preferences.desktop.in create mode 100644 data/indicator-datetime.service.in (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..b9a9532 --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,26 @@ +#SUBDIRS = icons + +gsettings_SCHEMAS = \ + com.canonical.indicator.datetime.gschema.xml +@GSETTINGS_RULES@ + +dbus_servicesdir = $(DBUSSERVICEDIR) +dbus_services_DATA = indicator-datetime.service + +%.service: %.service.in + sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ + +pkgdata_DATA = datetime-dialog.ui + +@INTLTOOL_DESKTOP_RULE@ +desktopdir = $(datadir)/applications +desktop_DATA = indicator-datetime-preferences.desktop + +EXTRA_DIST = \ + $(gsettings_SCHEMAS) \ + datetime-dialog.ui \ + indicator-datetime-preferences.desktop \ + indicator-datetime-preferences.desktop.in \ + indicator-datetime.service.in + +CLEANFILES = indicator-datetime-preferences.desktop indicator-datetime.service diff --git a/data/com.canonical.indicator.datetime.gschema.xml b/data/com.canonical.indicator.datetime.gschema.xml new file mode 100644 index 0000000..8ce75e6 --- /dev/null +++ b/data/com.canonical.indicator.datetime.gschema.xml @@ -0,0 +1,111 @@ + + + + + + + + + + true + Show the clock in the panel + + Controls whether the clock indicator appears in the panel or not. + + + + 'locale-default' + What the time format should be + + Controls the time format that is displayed in the indicator. For almost + all users this should be the default for their locale. If you think the + setting is wrong for your locale please join or talk to the translation + team for your language. If you just want something different you can + adjust this to be either 12 or 24 time. Or, you can use a custom format + string and set the custom-time-format setting. + + + + "%l:%M %p" + The format string passed to strftime + + The format of the time and/or date that is visible on the panel when using + the indicator. For most users this will be a set of predefined values as + determined by the configuration utility, but advanced users can change it + to anything strftime can accept. Look at the man page on strftime for + more information. + + + + false + Show the number of seconds in the indicator + + Makes the datetime indicator show the number of seconds in the indicator. + It's important to note that this will cause additional battery drain as + the time will update 60 times as often, so it is not recommended. Also, + this setting will be ignored if the time-format value is set to custom. + + + + false + Show the day of the week in the indicator + + Puts the day of the week on the panel along with the time and/or date + depending on settings. This setting will be ignored if the time-format + value is set to custom. + + + + false + Show the month and date in the indicator + + Puts the month and the date in the panel along with the time and/or day + of the week depending on settings. This setting will be ignored if the + time-format value is set to custom. + + + + true + Show the monthly calendar in the indicator + + Puts the monthly calendar in indicator-datetime's menu. + + + + false + Show week numbers in calendar + + Shows the week numbers in the monthly calendar in indicator-datetime's menu. + + + + true + Show events in the indicator + + Shows events from Evolution in indicator-datetime's menu. + + + + false + Show locations in the indicator + + Shows custom defined locations in indicator-datetime's menu. + + + + ['UTC'] + A List of locations + + Adds the list of locations the user has configured to display in the + indicator-datetime menu. + + + + '' + The name of the current timezone + + Some timezones can be known by many different cities or names. This setting describes how the current zone prefers to be named. Format is "TIMEZONE NAME" (e.g. "America/New_York Boston" to name the New_York zone Boston). + + + + diff --git a/data/datetime-dialog.ui b/data/datetime-dialog.ui new file mode 100644 index 0000000..8479482 --- /dev/null +++ b/data/datetime-dialog.ui @@ -0,0 +1,774 @@ + + + + + + 1.8446744073709552e+19 + 86400 + 864000 + + + False + Locations + 300 + 200 + True + time-admin + + + True + False + + + True + True + automatic + automatic + + + True + True + locationsStore + True + 0 + + + + + True + True + 0 + + + + + True + False + + + False + True + 1 + + + + + True + False + + + True + True + True + False + + + Add a Location… + + + + + True + False + gtk-add + + + + + False + True + 0 + + + + + True + True + True + False + + + Remove This Location + + + + + True + False + gtk-remove + + + + + False + True + 1 + + + + + False + True + 2 + + + + + + + + + + + + + + + + + + + + + 1.8446744073709552e+19 + 60 + 3600 + + + False + 5 + Time & Date + False + time-admin + dialog + + + True + True + + + True + False + 12 + 6 + + + True + False + 12 + + + True + False + 6 + + + 265 + True + False + 0 + none + + + + + + True + True + 0 + + + + + True + False + 6 + + + True + False + 1 + _Location: + True + timezoneEntry + + + False + True + 0 + + + + + True + True + + True + + + True + True + 1 + + + + + False + True + 1 + + + + + True + True + 0 + + + + + True + False + 2 + 2 + 6 + 6 + + + True + False + 6 + + + _Manually + True + True + False + False + True + 0 + True + True + + + False + True + 0 + + + + + _Automatically from the Internet + True + False + True + False + False + True + 0 + True + manualTimeRadio + + + False + True + 1 + + + + + 1 + 2 + + + + + True + False + 1 + Set the time: + + + GTK_FILL + GTK_FILL + + + + + True + False + 12 + + + True + False + 6 + + + True + True + + 11 + 1 + True + timeAdjustment + + + False + True + 0 + + + + + False + True + 0 + + + + + True + False + 6 + + + True + False + 0 + _Date: + True + dateSpinner + + + False + True + 0 + + + + + True + True + + 11 + 1 + True + dateAdjustment + + + False + True + 1 + + + + + False + True + 1 + + + + + 1 + 2 + 1 + 2 + + + + + True + False + 1 + Tim_e: + True + timeSpinner + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + False + True + 1 + + + + + True + True + end + 0 + + + + + + + + + + True + False + 1 + _Time & Date + True + + + False + + + + + True + False + 0 + 0 + + + True + False + 12 + 12 + + + _Show a clock in the menu bar + True + True + False + False + True + 0 + True + + + True + True + 0 + + + + + True + False + True + + + True + False + 6 + + + True + False + 0 + In the clock, show: + + + False + True + 0 + + + + + _Weekday + True + True + False + False + True + 0 + True + + + False + True + 1 + + + + + _Date and month + True + True + False + False + True + 0 + True + + + False + True + 2 + + + + + True + False + + + _12-hour time + True + True + False + False + True + 0 + True + True + + + False + True + 0 + + + + + _24-hour time + True + True + False + False + True + 0 + True + show12HourRadio + + + False + True + 1 + + + + + False + True + 3 + + + + + Seco_nds + True + True + False + False + True + 0 + True + + + False + True + 4 + + + + + True + True + 0 + + + + + True + False + 6 + + + True + False + 0 + In the clock’s menu, show: + + + True + True + 0 + + + + + _Monthly calendar + True + True + False + False + True + 0 + True + + + False + True + 1 + + + + + True + False + 0 + 0 + 0 + 24 + + + True + False + 6 + + + Include week num_bers + True + True + False + False + True + 0 + True + + + True + True + 0 + + + + + + + False + True + 2 + + + + + True + True + False + False + True + 0 + True + + + True + False + 0 + Coming _events from Evolution Calendar + True + True + showEventsCheck + + + + + False + True + 3 + + + + + Time in _other locations + True + True + False + False + True + 0 + True + + + False + True + 5 + + + + + True + False + 0 + 0 + 0 + 0 + 24 + + + Choose _Locations… + True + True + True + False + True + 0 + + + + + True + True + 5 + + + + + True + True + 1 + + + + + True + True + 1 + + + + + + + 1 + False + + + + + True + False + _Clock + True + + + 1 + False + + + + + + + + + + + + + diff --git a/data/indicator-datetime-preferences.desktop.in b/data/indicator-datetime-preferences.desktop.in new file mode 100644 index 0000000..f37765b --- /dev/null +++ b/data/indicator-datetime-preferences.desktop.in @@ -0,0 +1,14 @@ +[Desktop Entry] +Version=1.0 + +_Name=Time & Date +_Comment=Change your clock and date settings + +Icon=time-admin +TryExec=indicator-datetime-preferences +Exec=indicator-datetime-preferences + +StartupNotify=true + +Type=Application +Categories=GNOME;GTK;Utility;DesktopSettings;Settings; diff --git a/data/indicator-datetime.service.in b/data/indicator-datetime.service.in new file mode 100644 index 0000000..e7735ce --- /dev/null +++ b/data/indicator-datetime.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=com.canonical.indicator.datetime +Exec=@libexecdir@/indicator-datetime-service -- cgit v1.2.3