Commit graph

323 commits

Author SHA1 Message Date
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
Rodrigo Moya
298a95559d region: Add 'formats' tab 2011-06-14 19:02:54 +02:00
Rui Matos
22f7c182bd region: trigger the layout chooser dialog response on 'row-activated' signal
Allows the user to choose a new layout by double clicking or hitting enter.

https://bugzilla.gnome.org/show_bug.cgi?id=652409
2011-06-13 21:11:53 +01:00
Rui Matos
60a2507366 region: remove helper function not needed since GTK+ 3.0
GTK+ 3.0 introduced gtk_tree_model_iter_previous() so we no longer need to
keep this helper function.

Also, simplify the use of GtkTreeIters by allocating them on the stack.

https://bugzilla.gnome.org/show_bug.cgi?id=652374
2011-06-12 14:08:00 +01:00
Rui Matos
6db9b9fbfa region: fix infinite loop dealing with gsettings 'changed' signal
Setting updating_settings in update_layouts_list() and checking for it in the
gsettings 'changed' signal handler doesn't prevent a loop because the signal
handler is only called after update_layouts_list() returns and thus
updating_settings is already FALSE at that point.

By using the 'drag-end' signal instead of 'row-inserted', etc. we continue to
support DnD re-ordering of layouts while avoiding the loop from
xkb_layouts_fill_selected_tree() deleting and inserting rows into the model.

https://bugzilla.gnome.org/show_bug.cgi?id=652361
2011-06-12 14:07:18 +01:00
Rui Matos
efbe184019 region: fix a couple of memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=652360
2011-06-11 18:18:05 +01:00
Sergey V. Udaltsov
c05e531bfb Fix the labels according to the usability gurus
https://bugzilla.gnome.org/show_bug.cgi?id=641021
2011-06-11 01:59:00 +01:00
Bastien Nocera
922116e04e region: Use input-keyboard instead of system-run icon
https://bugzilla.gnome.org/show_bug.cgi?id=647656
2011-05-07 17:50:02 +01:00
Bastien Nocera
7481609b4d Revert "region: Use input-keyboard instead of system-run icon"
This reverts commit 4320dbfadf.

No UI changes for GNOME 3.0 yet.
2011-04-26 15:22:46 +01:00
Bastien Nocera
4320dbfadf region: Use input-keyboard instead of system-run icon
https://bugzilla.gnome.org/show_bug.cgi?id=647656
2011-04-26 14:43:06 +01:00
Bastien Nocera
702fb777b1 region: Add "clear" secondary icon to search entry
https://bugzilla.gnome.org/show_bug.cgi?id=647717
2011-04-26 14:38:30 +01:00
Cosimo Cecchi
eac562b162 region: make the layout options modal
https://bugzilla.gnome.org/show_bug.cgi?id=646183
2011-03-30 10:36:56 -04:00
Bastien Nocera
186b1b1a74 region: Remove tooltips for add layout list view
https://bugzilla.gnome.org/show_bug.cgi?id=645674
2011-03-26 02:01:40 +00:00
Ray Strode
a3fce2970f region: update language string
Change description on language tab of region panel from

Select a display language

to

Select a display language (change will be applied next time you log in)

to make it clear that the setting won't take effect until
next login.

http://mail.gnome.org/archives/gnome-i18n/2011-March/msg00152.html
2011-03-21 08:04:56 -04:00