Commit graph

336 commits

Author SHA1 Message Date
Bastien Nocera
22ac9fa06b region: Don't make the dialogue overly wide
https://bugzilla.gnome.org/show_bug.cgi?id=670667
2012-03-07 18:12:12 +01:00
Bastien Nocera
b55d07e47f region: Fix handling of variants in "Copy" button
Instead of splitting the list of layouts into layouts and variants,
we were expecting strings of the form:
layout1 variant1, layout2 variant2
to be handled automatically. We should instead create the lists
of layouts and variants separately before passing them to localed.

https://bugzilla.gnome.org/show_bug.cgi?id=670607
2012-02-22 20:40:38 +01:00
Bastien Nocera
f3a8805d30 region: Remove useless assignments 2012-02-22 15:24:52 +01:00
Robert Ancell
a1b60db059 region: Stop using deprecated gtk_vbox_new
https://bugzilla.gnome.org/show_bug.cgi?id=669620
2012-02-08 12:11:02 +00:00
Sergey V. Udaltsov
ca2186e7a7 region: Fix rendering of the layout list in the "add layout" popup
When enabled, "extra" layouts are rendered as italic.
It was broken, the markup was visible literally - now it is real italic text

Signed-off-by: Sergey V. Udaltsov <svu@gnome.org>
2011-12-25 03:00:02 +00:00
Florian Müllner
4cd7b6c6dc .desktop: Drop prefix from X-GNOME-Keywords
The field has now been included in the spec, so use the standardized
name.
2011-12-19 16:26:40 +01:00
Bastien Nocera
6665b60422 panels: Update for Shell API changes 2011-11-07 18:03:14 +00:00
Bastien Nocera
5afe1be01a region: Add label to toolbar buttons 2011-10-25 17:47:17 +01:00
Bastien Nocera
6d38216573 region: Small style fix 2011-10-18 18:46:15 +01:00
Bastien Nocera
8a0c2e1b27 region: Align the example dates
By removing leading spaces.
2011-10-03 14:32:59 +01:00
Antoine Jacoutot
7b8b773cf3 region: Fix build on systems without LC_MEASUREMENT
LC_MEASUREMENT is not posix and may not be defined on all systems.

https://bugzilla.gnome.org/show_bug.cgi?id=660787
2011-10-03 14:32:55 +01:00
Bastien Nocera
6a9881d75f region: Implement copying layouts
Using systemd's SetX11Keyboard() method in localed. Disable
the functionality altogether if systemd is not found.

This version supports multiple keyboard layouts by passing comma
separated layouts, as supported by X11.

https://bugzilla.gnome.org/show_bug.cgi?id=659300
2011-10-03 12:29:49 +01:00
Bastien Nocera
5fb0ae9391 region: Simplify getting the current Locale 2011-09-29 16:54:44 +01:00
Bastien Nocera
e26c19da41 region: Hide system tab if no localed
As localed will be required to set the system-wide layouts.
2011-09-29 16:54:42 +01:00
Bastien Nocera
2749876e1f region: Use WID() macro 2011-09-29 16:54:36 +01:00
Matthias Clasen
88a2721159 region: Only offer to copy settings if they are different
We should not offer to copy the settings if they are identical
to the system-wide settings anyway.
2011-09-16 22:58:13 -04:00
Matthias Clasen
43dfc5418c Region: fix display of layouts on the system tab
G_N_ELEMENTS only works on explicitly declared arrays.
2011-09-16 22:35:04 -04:00
Matthias Clasen
bf5239d240 Region: Add a translator comment
'Display language' is not necessarily obvious, so explain
that it relates to displaying translated messages.
2011-09-15 19:32:49 -04:00
Bastien Nocera
d8b9fc9c5d region: Add ability to switch pages 2011-09-08 17:23:10 +01:00
Rodrigo Moya
68fcfd6493 region: Don't show region panel in Unity, it uses its own language selector 2011-08-24 17:02:35 +02:00
Rodrigo Moya
a0f6f9c603 region: Avoid crash when systemd is not available 2011-08-23 13:01:06 +02:00
Matthias Clasen
749148cda6 region: Initial implementation of 'copy to system'
This implementation is using the systemd-localed mechanism.
It currently does not support keyboard layouts, unfortunately.
2011-08-22 14:29:59 -04:00
Matthias Clasen
796cede386 region: Add some spacing to the system tab 2011-08-22 14:29:58 -04:00
Matthias Clasen
1538ab4c79 region: Ensure the system tab is updated
When the region setting is unset, we need to update the
region on the system tab also when the language changes.
2011-08-22 14:29:57 -04:00
Matthias Clasen
68c7654dfb region: show fewer regions
Rework the region list to only show regions 'matching' the current
language, and add a region chooser dialog that offers the full set.
2011-08-22 14:29:56 -04:00
Matthias Clasen
d22307b699 region: Use region names on the region tab
Use the just introduced api to show region names in the list.
2011-08-22 14:29:56 -04:00
Matthias Clasen
9e02793982 common: Add a region mode to the language chooser
In this mode, locales are primarily represented by their
region component, instead of their language component.
2011-08-22 14:29:55 -04:00
Matthias Clasen
7720b989ea region: Redo the formats tab
The big combo box is not very usable, so as a first improvement,
move things around so that we can use a list on the left, and
put the examples on the right.

Also add a 'need logout' hint in the same style as on the
language tab.
2011-08-22 14:29:54 -04:00
Matthias Clasen
be235bd9ae region: Redo the language tab
Prepopulate the list with a small set of 'common' languages,
as we already did in the user panel, and use a language chooser
to add to that list.
2011-08-22 14:29:53 -04:00
Matthias Clasen
2b64b963be region: Fix locale-changing code
setlocale() returns a string representing the _new_ locale, so
we have to get the current locale with setlocale (..., NULL) first,
and we have to copy it since it returns a static string that will
otherwise get overwritten.
2011-08-22 14:29:49 -04:00
Matthias Clasen
732ba22aec region: avoid a crash in the absence of configured layouts
This code was creating a GString conditionally, but using
it unconditionally afterwards. Instead of special-casing
the str == NULL case, just always create it.
2011-08-19 21:28:17 -04:00
Rodrigo Moya
b0e96418f2 region: Display user's input source in System tab 2011-08-09 13:24:11 +02:00
Rodrigo Moya
d62267186a region: Sort locales for format selection 2011-08-09 12:46:15 +02:00
Sergey V. Udaltsov
9c4821bf87 region: keep selection when moving layout up/down
https://bugzilla.gnome.org/show_bug.cgi?id=654880
2011-08-06 03:19:27 +01:00
Bastien Nocera
0f5e7554ff region: Don't use markup in bold labels 2011-07-11 13:40:31 +01:00
Bastien Nocera
0c6ddedf91 region: Show measurement 2011-07-07 17:53:47 +01:00
Rodrigo Moya
ec843a03bb region: If no regional settings, use the configured language 2011-07-07 18:24:17 +02:00
Rodrigo Moya
46c1dfe664 region: Set LC_ specific variables, not LC_ALL 2011-07-07 18:24:17 +02:00
Rodrigo Moya
34abd47d91 region: Some Glade file fixes 2011-07-06 17:28:48 +02:00
Rodrigo Moya
4abb6f8a1f region: Add weak ref for locale settings 2011-07-06 17:11:40 +02:00
Rodrigo Moya
41007a8964 region: Display user settings in new System tab 2011-07-04 13:59:45 +02:00
Rodrigo Moya
81945e7a54 region: Add System tab 2011-07-04 13:59:45 +02:00
Michael Terry
0a8669a5b5 Add Unity to OnlyShowIn fields
https://bugzilla.gnome.org/show_bug.cgi?id=653661
2011-06-30 12:44:52 +01:00
Bastien Nocera
14328b704e region: Re-add missing toolbar style 2011-06-21 15:52:39 +01:00
Bastien Nocera
566e0559b1 region: Force icons only toolbar style 2011-06-21 15:51:38 +01:00
Rodrigo Moya
4b655eee12 region: Simplify displaying of dates and times 2011-06-17 11:20:52 +02:00
Rodrigo Moya
2ded577f3d region: Add weak ref for GSettings object 2011-06-17 11:07:04 +02:00
Rodrigo Moya
f25e06b7d9 region: Bind region selection to GSettings 2011-06-17 11:03:26 +02:00
Rodrigo Moya
066209d095 region: Display all example strings, even though some are wrong 2011-06-14 19:02:54 +02:00
Rodrigo Moya
68763a928b region: Add code to manage the new Formats tab 2011-06-14 19:02:54 +02:00