Commit graph

16 commits

Author SHA1 Message Date
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
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
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
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
ec843a03bb region: If no regional settings, use the configured language 2011-07-07 18:24:17 +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