Commit graph

69 commits

Author SHA1 Message Date
Rui Matos
19d3e96d6a datetime: Ensure that translated strings for timezones are UTF-8
This was fixed in commit 2c4bba74e0 but
then got lost in a code refactor in commit
3686cf7eb8.

https://bugzilla.gnome.org/show_bug.cgi?id=706350
2013-08-20 13:49:52 +01:00
Kalev Lember
6fddedad84 datetime: Toggle the NTP switch when clicking on the row
Pointed out by Allan Day on IRC.

https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 02:30:31 +02:00
Kalev Lember
20670b5360 datetime: Shuffle initialization code around
Move subdialog setup code out of the main init function and to
respective setup_*_dialog() functions.

https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 02:21:21 +02:00
Kalev Lember
f5cb98c94f datetime: Implement new design for the time subdialog
https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 02:21:21 +02:00
Kalev Lember
60e448b77a datetime: Move the 24h/12h selection to the main overview
... and use a combobox for choosing between the options.

https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 02:21:21 +02:00
Kalev Lember
f90edf44b1 datetime: Clean up error handling
Avoid using two GError variables in a single function to reduce
programmer confusion. Instead, only use one and clear it with
g_clear_error() when we need to reuse it.

Pointed out by Rui Matos.

https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 02:17:32 +02:00
Kalev Lember
a0d156d19a datetime: Implement listbox based overview
... and move existing date/time and timezone settings to separate subdialogs.

https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 02:17:32 +02:00
Kalev Lember
e665689e23 datetime: Use g_clear_object()
https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-09-08 10:02:24 +02:00
Ryan Lortie
8d813defb1 datetime: support new timedated CanNTP property
Set the NTP switch insensitive in the case that timedated has a CanNTP
property and that property is set to false.

https://bugzilla.gnome.org/show_bug.cgi?id=695253
2013-03-06 21:48:57 -05:00
Cosimo Cecchi
d2ce735f12 datetime: use a GResource for GtkBuilder UI definition and icons
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:05 +01:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Debarshi Ray
8afea39c60 datetime: Do not offer the 12 hr clock in locales without AM/PM
https://bugzilla.gnome.org/show_bug.cgi?id=673721
2012-11-08 12:29:44 +01:00
Bastien Nocera
2ab1f21723 datetime: Update current time when tz changes
https://bugzilla.gnome.org/show_bug.cgi?id=665137
2012-09-27 22:12:52 +02:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
Florian Müllner
afe99e36fd datetime: Add get_help_uri() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:37 +02:00
Bastien Nocera
bd41bd788b datetime: Fix broken time setting on 32-bit machines
time_t might be a 32-bit integer, which wouldn't be big enough
to contain the number of microseconds since Epoch (since it can
only fit the number of seconds from Epoch until 2038).

https://bugzilla.redhat.com/show_bug.cgi?id=795792
2012-03-12 16:41:31 +01:00
Bastien Nocera
d70bd4b82a datetime: Fix crashers when systemd is unavailable
https://bugzilla.gnome.org/show_bug.cgi?id=670016
2012-02-14 10:57:29 +00:00
Tomas Bzatek
90f78394f6 datetime: Port to systemd's timedated service
https://bugzilla.gnome.org/show_bug.cgi?id=658352
2012-01-19 22:29:41 +00:00
Tomas Bzatek
befa8cc748 datetime: Fix showing actual clock format on panel open
A small regression after recent switch to radio buttons.
2011-10-07 17:51:20 +02:00
Colin Walters
f708c36fc3 datetime: Use GnomeWallClock instead of periodic timeout
We don't actually use the ::clock property string here - this
is just making it so we don't need to wake up once a second.

https://bugzilla.gnome.org/show_bug.cgi?id=658011
2011-09-21 00:45:41 +02:00
Bastien Nocera
76783e8e27 datetime: Use radio buttons for 24h time
Instead of a switch. For most locales "24h time" doesn't
really have an opposite (as those don't use AM/PM).

https://bugzilla.gnome.org/show_bug.cgi?id=640059
2011-08-26 17:01:23 +01:00
Florian Müllner
ee73a6cf2b datetime: Fix date sensitivity on permission changes
Setting the date manually should be disabled when using NTP, but
the "Network Time" setting is not taken into account when updating
sensitivities after permission changes. As a result, the date is
always editable after unlocking the panel - to fix, take the NTP
setting into account on permission changes.

https://bugzilla.gnome.org/show_bug.cgi?id=652240
2011-06-10 00:12:11 +02:00
Matthias Clasen
be35c2a834 Datetime: Don't add a lockbutton
Instead, implement get_permission to get a lockbutton
in the toolbar.

https://bugzilla.gnome.org/show_bug.cgi?id=650292
2011-05-23 16:10:04 +01:00
Matthias Clasen
5e05b920c4 Datetime: use a gdbus-codegen-erated wrapper
Instead of handrolled, copy-pasted async code for talking to
the date-time-mechanism, use gdbus-codegen to generate one
that looks nicer and is just all-around better.
2011-05-17 11:29:32 -04:00
Bastien Nocera
b28923cc90 datetime: Use GTK+ lock button 2011-05-07 17:46:55 +01:00
Bastien Nocera
647f2a836d datetime: Fix time editing widgets order for RTL
https://bugzilla.gnome.org/show_bug.cgi?id=645425
2011-03-21 21:06:29 +00:00
Alexander Larsson
7c3011c352 Fix include not found for gsettings-desktop-schemas/gdesktop-enums.h
pkg-config --cflags gsettings-desktop-schemas lists:
 $incdir/gsettings-desktop-schemas
and that directory contains a gdesktop-enums.h file, so including
<gsettings-desktop-schemas/gdesktop-enums.h> will fail unless
the parent directory also accidentally got added as -I.
2011-03-18 15:50:05 +01:00
Bastien Nocera
56cd9069ee datetime: Don't crash when the timezone is unknown
Passing "posixrules" to cc_timezone_map_set_timezone() certainly
won't work that well.

https://bugzilla.redhat.com/show_bug.cgi?id=684593
2011-03-15 01:58:29 +00:00
Bastien Nocera
639e87724e datetime: Make 24h setting changeable without unlocking
https://bugzilla.gnome.org/show_bug.cgi?id=643891
2011-03-11 13:16:51 +00:00
Bastien Nocera
0d2903f1c4 datetime: Change combobox when map is clicked
https://bugzilla.redhat.com/show_bug.cgi?id=684072
2011-03-11 13:02:36 +00:00
Bastien Nocera
5fdc90cc8b 2.91.91
Fix wrong include lines, so distcheck works
2011-03-08 11:59:16 +00:00
Bastien Nocera
2898b86e68 datetime: Implement date endianess detection
Implement fairly robust detection of endianess based on
the d_fmt format exported by glibc.

https://bugzilla.gnome.org/show_bug.cgi?id=636896
2011-03-08 07:59:22 +00:00
Bastien Nocera
c93e7add24 datetime: Add UI code to reorder date widgets
Based on the locale's date format, rather than only support
the US-centric version.

https://bugzilla.gnome.org/show_bug.cgi?id=636896
2011-03-08 07:59:21 +00:00
Kjartan Maraas
e50563f67c datetime: Fix GCC 4.6 warnings
https://bugzilla.gnome.org/show_bug.cgi?id=642810
2011-03-02 18:03:35 +00:00
Bastien Nocera
3336eb9d88 lib: Add a lock button
Instead of using a copy/pasted version, until GTK+ includes
such a button itself.
2011-02-23 14:59:21 +00:00
Bastien Nocera
570c97ab26 datetime: Fix city combobox filtering
The city combo box's filter was never refiltered after setting
the original timezone, so we always got the whole list of cities.
2011-02-08 23:13:08 +00:00
Bastien Nocera
9e0d566cfb region: Fix overeager string splitting
So that Argentinian timezones show up properly again.
2011-02-08 22:33:52 +00:00
Bastien Nocera
de278d3a85 datetime: Don't crash when g-s-d is badly installed
And require a newer gnome-settings-daemon to avoid those problems.

https://bugzilla.gnome.org/show_bug.cgi?id=641232
2011-02-02 11:43:26 +00:00
Thomas Wood
938b42c1c6 datetime: add an 'unlock' button
Add an 'unlock' button to allow users to explicitly authenticate to make
changes.
2011-01-31 15:57:06 +00:00
Matthias Clasen
2c4bba74e0 Fix handling of multichar splitting for regions
g_strsplit_set is not the right thing to use with multibyte
characters. GRegex to the rescue. This was causing misrendering
and crashes in Chinese:
https://bugzilla.redhat.com/show_bug.cgi?id=669415

Also, we have to call bind_textdomain_codeset().
2011-01-25 20:37:01 -05:00
William Jon McCann
d69eba8c17 datetime: don't try to set timezone when initially loading model 2011-01-06 19:07:28 -05:00
William Jon McCann
15a0ad5fad datetime: make dialog instant apply 2011-01-06 18:28:07 -05:00
William Jon McCann
1d5309973d datetime: keep the time ticking while the dialog is up 2011-01-06 18:28:07 -05:00
William Jon McCann
26a45cafe8 datetime: use a switch for 24 hour time 2011-01-06 18:28:07 -05:00
Bastien Nocera
a5187c3a63 datetime: Fix timezone splitting
Correct the C-version of the UTF-8 characters, so that we don't
split on spaces as happened with the Italian translations.

Also make sure we remove underscores in both the city and the region
parts of the timezone name.

https://bugzilla.gnome.org/show_bug.cgi?id=636931
2010-12-10 11:44:55 +00:00
Bastien Nocera
de270ce6b4 datetime: Add "Network Time" switch
And disable the date/time switches when turning NTP on/off.
2010-12-09 17:40:18 +00:00
Bastien Nocera
189766a634 datetime: Translate timezone names
Both Cities and Regions need to be translated. Also make sure that
we sort them properly, and use symbolic names for COLUMNS in the
region liststore.

https://bugzilla.gnome.org/show_bug.cgi?id=630264
2010-12-09 16:29:56 +00:00
Bastien Nocera
6e71955717 datetime: We shouldn't have to know where TZ files live
That's a job for the backend to sort out.
2010-12-08 14:32:07 +00:00
Bastien Nocera
dc9f8114dc datetime: Implement 12h time setting
So AM/PM are shown when the clock format is 12h.

Use the new GSettings schema key for the preference.

Also make sure that the day spinner always falls within the
number of days of the month available (and make the 31st selectable
for months that have that many days).
2010-12-02 18:11:27 +00:00
Bastien Nocera
6de52cfb97 datetime: Don't depend on gnome-shell for the clock format
We really don't want to depend on a module that might not be
installed for this setting. Use the one in gsettings-desktop-schemas
instead.
2010-12-02 15:37:47 +00:00