Commit graph

32 commits

Author SHA1 Message Date
Jasper St. Pierre
2d3ed3468a language-chooser: Rearrange code
This will make the diff to the new chooser less mysterious
2013-05-22 16:23:19 -04:00
Jasper St. Pierre
d3faf9cf8a language-chooser: Add separators between choices 2013-05-22 16:23:19 -04:00
Rui Matos
7c341ed630 common: Keep language chooser labels centered
In order to prevent the labels from moving around when hiding and
showing the check mark we need to keep the check mark always visible
and instead tweak its opacity.

We also add an always transparent widget the same size as the check
mark on the other side of the label to make sure that the label is
globally centered.

https://bugzilla.gnome.org/show_bug.cgi?id=695536
2013-04-15 11:53:27 +02:00
Rui Matos
998b662d60 common: Fix language chooser check marks being cleared
https://bugzilla.gnome.org/show_bug.cgi?id=695536
2013-04-15 11:53:27 +02:00
Rui Matos
d7cecdca2f region: Use view-more-symbolic for the "More" list item
We've had some early reports that the ellipsis used to label the
"More" item in some of the lists isn't clear.

https://bugzilla.gnome.org/show_bug.cgi?id=694927
2013-04-15 11:53:27 +02:00
Rui Matos
e1c563d38b common: Add separators to the language chooser list
https://bugzilla.gnome.org/show_bug.cgi?id=695465
2013-04-15 11:53:27 +02:00
William Jon McCann
3d5b6fd2bc common: Fix language chooser to be centered
https://bugzilla.gnome.org/show_bug.cgi?id=694323
2013-02-26 15:07:43 +01:00
Rui Matos
ef4576b4f4 Check gtk_builder_add_from_resource() return value 2013-02-19 12:25:56 +01:00
Rui Matos
bc3307b492 Prevent potential segfault 2013-02-19 12:25:56 +01:00
Rui Matos
12ce8a7fd9 Fix code style issues 2013-02-19 12:25:56 +01:00
Rui Matos
acbe609c94 common: Allow using multiple words to filter languages
All words must match.
2013-02-19 12:25:54 +01:00
Rui Matos
0b2b0284fe common: Disregard being an initial language for sorting
Otherwise all the initial languages would show up grouped at the end
of the list when showing all entries.
2013-02-19 12:25:54 +01:00
Rui Matos
864b98e141 common: Make language filtering smarter
We normalize both the filter string from the user and the language
label to disregard case and accents. Then we try to match the language
label on its native translation, the current LC_MESSAGES translation
and untranslated.
2013-02-19 12:25:54 +01:00
Rui Matos
fbbb0b1fd8 Fix some memory leaks 2013-02-19 12:25:54 +01:00
Rui Matos
a0ba3bc4fc Adapt to gnome-languages API change 2013-02-19 12:25:54 +01:00
Rui Matos
80ddfe09da Remove two unused variables 2013-02-19 12:25:53 +01:00
Matthias Clasen
a8e3ac482d A new language chooser 2013-02-19 12:25:52 +01:00
Matthias Clasen
1ecd607bcb Move cc_add_user_language
Move it to cc-common-language.c and rename it
to cc_common_language_add_user_languages
2013-02-19 12:25:51 +01:00
Rui Matos
7221f9cd54 common: gdm-languages moved to gnome-desktop as gnome-languages
That code is useful for other core desktop modules.

https://bugzilla.gnome.org/show_bug.cgi?id=692414
2013-01-25 16:29:15 +01:00
Cosimo Cecchi
ce1e2eddd8 common: use a GResource for GtkBuilder UI definition
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:17 +01:00
Bastien Nocera
e2ced1c2c3 common: Avoid the language chooser resizing during load
250px should be enough to start with.
2012-12-13 12:26:35 +01:00
Bastien Nocera
897243858f region: Reinstate the separator in the languages list
The separator went missing when we started adding the popular
languages to the list. Make it come back to separate the user
languages from the popular ones.
2012-12-11 09:15:55 +01:00
Matthias Clasen
5a2f836e74 region: Make 'Add' dialogs consistent
These dialogs had an inconsistent mix of bold window titles and
non-bold headings. Change them to all use window titles with similar
wording.
https://bugzilla.gnome.org/show_bug.cgi?id=684829
2012-12-10 15:25:15 +01:00
Jeremy Bicha
fa9ef0d5d9 common: Use the proper Unicode ellipsis (…) instead of three dots
https://bugzilla.gnome.org/show_bug.cgi?id=689497
2012-12-03 09:13:47 -05:00
Bastien Nocera
e851e426d0 common: Avoid crashing if a language doesn't have a display name
If for some reason we cannot translate a language name, then
we wouldn't have a display language.

https://bugzilla.redhat.com/show_bug.cgi?id=752806
2012-11-29 17:06:19 +01:00
Thomas Wood
7dab589e9e common: remove the use of the GDK thread functions
Remove the use of gdk_threads_enter and gdk_threads_leave functions, as
they have been deprecated, and also replace gdk_threads_add_idle with
g_idle_add.

https://bugzilla.gnome.org/show_bug.cgi?id=688231
2012-11-13 13:49:08 +00:00
Matthias Clasen
a955ec4152 Switch files created by me to GPLv2+
This matches the rest of the control-center code base.
https://bugzilla.gnome.org/show_bug.cgi?id=683420
2012-09-06 19:07:09 -04:00
Bastien Nocera
ee3f0720f2 common: Fix crash when filtering language list
And it's still being populated. If the list gets filtered
while it's being populated, we would end up with a row with NULL
data, causing us to crash.

Make sure to hold the GDK threads lock when reading from the list,
to avoid racing with the insert code.

http://bugzilla.gnome.org/show_bug.cgi?id=672293
2012-03-27 13:49:54 +02:00
Cosimo Cecchi
4c806ba60a language-chooser: make the filter entry grab focus on creation
The filter entry should have initial keyboard focus, so typing in the
dialog right away will filter it.

https://bugzilla.gnome.org/show_bug.cgi?id=664505
2011-11-22 09:48:55 -05: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
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
60c8f11a12 user: Move the language chooser to common
It will soon be used in the region panel as well.
2011-08-22 14:29:52 -04:00
Renamed from panels/user-accounts/um-language-dialog.c (Browse further)