Commit graph

23 commits

Author SHA1 Message Date
Bastien Nocera
287b0b917a region: Fix possibly uninitialised variable 2012-09-27 16:13:11 +02:00
Rui Matos
4abdc131c9 Revert "region: Create a source from the X layout in use when setting is empty"
This reverts commit 1e0192555b.

https://bugzilla.gnome.org/show_bug.cgi?id=684584
2012-09-25 13:20:34 +02:00
Bastien Nocera
914e8b2562 region: Handle input sources in the system tab
Unfortunately we don't have a way yet to make gsettings system wide
defaults so we are just using the localed API to export the XKB input
sources and ignore the IBus ones.

https://bugzilla.gnome.org/show_bug.cgi?id=683875
2012-09-16 13:33:05 -04:00
Rui Matos
0fb0d6139b region: Removal of the Layouts tab
https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:38 +01:00
Bastien Nocera
57bba26311 region: Fix possible crasher with empty layout 2012-03-07 18:27:25 +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
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