Commit graph

248 commits

Author SHA1 Message Date
Frédéric Péters
cc600a918b datetime: update timezones for new "Pyongyang Time"
https://bugzilla.gnome.org/show_bug.cgi?id=753643
2015-08-18 00:16:44 +02:00
Bastien Nocera
557dc46d97 datetime: Load backward file from GResource
So it doesn't warn when not installed in the target prefix yet.

https://bugzilla.gnome.org/show_bug.cgi?id=752831
2015-07-26 23:48:48 +02:00
Bastien Nocera
f7467d2175 datetime: Make it possible to focus the time spin buttons
https://bugzilla.gnome.org/show_bug.cgi?id=752609
2015-07-20 12:08:59 +02:00
Bastien Nocera
ac59708d3f datetime: Fix incorrect sensitivity when permission is missing
When the permission is missing, we shouldn't make the rows sensitive.

https://bugzilla.gnome.org/show_bug.cgi?id=709774
2015-07-10 17:14:02 +02:00
Bastien Nocera
6279dcd0a6 datetime: Respect the date endianess
When the user changes the date, order the widgets in the same order as
how the date is printed in that locale.

https://bugzilla.gnome.org/show_bug.cgi?id=750799
2015-06-30 15:00:07 +02:00
Mathieu Bridon
623abfb428 datetime: Fix date endianess for en_HK
Hong Kong people expect to use a little endian date in English. (and a
big endian date in Chinese)

The D_FMT format string for en_HK is '%A, %B %d, %Y', which the current
code parses as middle endian.

This commit makes the code parse it as little endian, that is it doesn't
ignore the %A formatter any more.

en_HK is the only UTF-8 locale with this D_FMT format string, so this
shouldn't change anything for other locales.

https://bugzilla.gnome.org/show_bug.cgi?id=750781
2015-06-15 17:27:34 +02:00
Mathieu Bridon
8b2d6b7afe datetime: Support new date endianess for ce_RU
https://bugzilla.gnome.org/show_bug.cgi?id=749438
2015-06-15 17:23:36 +02:00
Mathieu Bridon
71d5be4cf2 datetime: Fix comment
https://bugzilla.gnome.org/show_bug.cgi?id=749438
2015-06-15 17:23:36 +02:00
Piotr Drąg
d07a704186 Updated Polish translation of timezones
Sync with fixes sent upstream.
2015-02-09 19:38:27 +01:00
Bastien Nocera
d7bda0bc2e datetime: Don't hard-code font size
Use a percentage instead.

https://bugzilla.gnome.org/show_bug.cgi?id=735973
2014-09-03 18:04:58 +02:00
Bastien Nocera
2ae2eabe2f datetime: Fix crash when setting year to 0
https://bugzilla.gnome.org/show_bug.cgi?id=735352
2014-09-01 14:43:51 +02:00
Stanislav Brabec
98916a60f8 datetime: Make punctuation translatable
https://bugzilla.gnome.org/show_bug.cgi?id=732585
2014-07-15 15:12:04 +02:00
Bastien Nocera
92134ee21b datetime: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:30 +02:00
Michael Catanzaro
c8654808c2 datetime: check CanNTP when initializing the panel
If the system does not support NTP (as determined by the presence of an
NTP unit in /usr/lib/systemd/ntp-units.d), the Automatic Date & Time row
is intended to be hidden. We respond to changes to timedated's CanNTP
property, but we never account for the initial state of the property,
so we wind up displaying the Automatic Date & Time row even though the
switch is guaranteed to be broken.

Check CanNTP when initializing the panel to fix this.

https://bugzilla.gnome.org/show_bug.cgi?id=732021
2014-06-23 11:50:34 -05:00
Yosef Or Boczko
576acc1602 datetime: Use header bar in the datetime and the timezone dialogs
The seatch entry in the timezone dialog is moved to the
title of the header bar.

https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:17 +03:00
Kalev Lember
c3ab9b28b5 datetime: Fix the width of hour and minute spinbuttons
Since gtk+ commit cf4a41a856b56bcab6edaaf0e0a4f17ed5853525, the hour and
minute spin buttons in the datetime dialog grew too wide. gtk+ now
computes separate natural and minumum width; unfortunately the natural
width is too wide for us.

Force the spin buttons to have max width of 2 characters to fix this.
2014-03-15 22:13:44 +01:00
Kalev Lember
5f2ad4c40b datetime: Clean up indentation of the ui file
This was done with xmllint --format; no functional changes.
2014-03-15 22:13:44 +01:00
Kalev Lember
c0170ffed6 datetime: Fix typo in function name 2014-03-15 22:13:44 +01:00
Kalev Lember
5fa3671289 datetime: Remove unused property setters/getters 2014-03-15 22:13:44 +01:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Matthias Clasen
c462c34b28 datetime: Set the filechooser clock format too
GTK+ now uses a 12h/24h setting in the org.gtk.Settings.FileChooser
schema to switch the time display in the file chooser. Set this
to be in sync with the global time format preference we have.

https://bugzilla.gnome.org/show_bug.cgi?id=722942
2014-01-26 09:47:51 -05:00
Yosef Or Boczko
4ac350f328 datetime: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:27:12 +02:00
Jasper St. Pierre
dd52ac9417 Add NoDisplay to all gnome-control-center panel .desktop files
These aren't apps -- they're simply launchers for gnome-control-center.
They should not be shown as apps in the UI at all.

https://bugzilla.gnome.org/show_bug.cgi?id=712246
2013-11-15 08:44:53 -05:00
Kalev Lember
24faa84d05 datetime: Explicitly destroy toplevel dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=709443
2013-10-07 10:35:52 +02:00
Kalev Lember
47fb0c426f Revert "datetime: Don't leak the dialogs"
This caused criticals when on_permission_changed callback tried to
access priv->datetime_dialog or priv->timezone_dialog before they had
been set up.

Another attempt at fixing the leak in the following patch.

This reverts commit 545c886543.

https://bugzilla.gnome.org/show_bug.cgi?id=709443
2013-10-07 10:35:52 +02:00
Kalev Lember
7ae60ad2cf datetime: Disconnect from GtkStack signals before widget destruction
This fixes a regression from commit 545c886 that caused criticals when
leaving the datetime panel.

https://bugzilla.gnome.org/show_bug.cgi?id=709443
2013-10-07 10:35:52 +02:00
Kalev Lember
2234970583 datetime: Store am_pm_stack in priv structure
This is in preparation for the next patch.

https://bugzilla.gnome.org/show_bug.cgi?id=709443
2013-10-07 10:35:52 +02:00
Rui Matos
a401a914eb datetime: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:02 +02:00
Rui Matos
545c886543 datetime: Don't leak the dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:02 +02:00
Kalev Lember
17a8595ddc datetime: Sync AM/PM button's accessible name with the text displayed
Instead of hardcoding the accessible name as "Switch between AM and
PM.", set it to "AM" or "PM" depending on which label the stack switcher
is currently showing.

https://bugzilla.gnome.org/show_bug.cgi?id=708219
2013-09-17 14:31:22 +02:00
Kalev Lember
538032d26f datetime: Use the currently preferred way for setting accessible names
For entries that have labels associated, use the mnemonic relationship; and for
those that don't, set up the accessible name.

https://bugzilla.gnome.org/show_bug.cgi?id=708219
2013-09-17 02:04:58 +02:00
Kalev Lember
9fface8f03 datetime: Remove incorrectly set mnemonics
The mnemonics were pointing to other GtkLabels rather than activatable
widgets and were confusing Orca.

https://bugzilla.gnome.org/show_bug.cgi?id=708085
2013-09-16 11:48:12 +02:00
Kalev Lember
47e8406ed6 datetime: Connect arrow up/down keynav across list boxes
https://bugzilla.gnome.org/show_bug.cgi?id=707942
2013-09-15 16:58:43 +02:00
Kalev Lember
5f21f92f7f datetime: Plug a small memory leak 2013-09-12 22:32:46 +02:00
Alejandro Piñeiro
efe1062da0 datetime: setting can_focus to true on listbox rows
https://bugzilla.gnome.org/show_bug.cgi?id=707778
2013-09-11 05:44:27 -04:00
Kalev Lember
16e251ea98 datetime: Use new g_date_time %z format modifier
Use new %:::z format string to display timezone offset in a slightly
nicer way. This is also needed for consistency with the timezone
notifications from gnome-settings-daemon.

Also bump glib dependency to 2.37.7 for the new modifier.

https://bugzilla.gnome.org/show_bug.cgi?id=707253
2013-09-02 19:05:46 +02:00
Kalev Lember
c68f9eca50 datetime: Show the automatic timezone switch
The backend in gnome-settings-daemon is now functional, so we can expose
the option in the UI.

https://bugzilla.gnome.org/show_bug.cgi?id=707252
2013-09-02 19:05:46 +02:00
Kalev Lember
88f4c30c04 datetime: Use GObject property binding for the NTP switch
This makes it possible to remove the code for manually keeping the NTP
switch and the timedated1 DBus proxy properties in sync, and also makes
it easy to share code with the automatic timezone switch.

https://bugzilla.gnome.org/show_bug.cgi?id=707252
2013-09-02 19:04:40 +02:00
Kalev Lember
853fb8cc90 datetime: Move polkit initialization earlier
... so that in the following commit, we can rely on the permissions
being available.

While at this, also create a DATETIME_PERMISSION for the PolicyKit
action ID at the top of the file.

https://bugzilla.gnome.org/show_bug.cgi?id=707252
2013-09-02 19:04:40 +02:00
Kalev Lember
d7847fe7a1 datetime: Exit early if the timedate1 service isn't available
We cannot meaningfully change (or display) any Date & Time system
settings without the timedate1 DBus service, so just exit early.

https://bugzilla.gnome.org/show_bug.cgi?id=707252
2013-09-02 19:04:40 +02:00
Kalev Lember
a709ae41eb datetime: Rename settings to clock_settings
https://bugzilla.gnome.org/show_bug.cgi?id=707252
2013-09-02 19:04:40 +02:00
Kalev Lember
ab1d1b0c54 datetime: Hide the NTP switch when the service is unavailable
https://bugzilla.gnome.org/show_bug.cgi?id=706378
2013-08-29 16:48:54 +02:00
Kalev Lember
c5812c3ccc datetime: Mark the time format strings as translatable
... and add translator comments explainings what they do. The RTL
languages are likely going to want to show them in a different order.

We should eventually move to just using GnomeWallClock and/or
g_date_time_format with %c that already have translated the time format
strings. However, in case this doesn't make it in time for 3.10, mark
the current strings in g-c-c as translatable to get some translation
coverage.

https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 15:49:59 +02:00
Kalev Lember
da9d4a76c9 datetime: Show information about the selected timezone
... using the text bubble API from the previous commit. We're currently
displaying the time zone abbreviation, UTC offset, city and country
name, and the current time.

https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 15:49:59 +02:00
Kalev Lember
05dc928313 datetime: Add API to draw a text bubble on the timezone map
It's currently drawn either west or east of the position marker,
depending where we have more free space.

https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 15:49:59 +02:00
Kalev Lember
718118963e datetime: Implement timezone search with autocompletion
This is first cut at implementing the new timezone dialog design.
Instead of having drop down menus with the city and the continent, we're
now switching to a search entry that has autocompletion.

https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 15:49:50 +02:00
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