Matthias Clasen
2d0203bfad
common: Make insertion of new languages quicker
...
See https://bugzilla.gnome.org/show_bug.cgi?id=672293#c6
2012-03-27 13:52:23 +02: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
Bastien Nocera
94555eadc8
common: Look harder for some languages
...
It's fairly common to have de rather than de_DE translations, ditto
for French and Spanish that share most of the vocabulary.
2012-03-08 13:53:20 +01:00
Bastien Nocera
d5afe63f89
common: Add more debug to list-languages
...
So we can print the name of the locales listed on the command-line.
2012-03-05 13:55:04 +00:00
Bastien Nocera
e3c3380fea
common: Fix crashes for incomplete locales
...
By ignoring locales without language codes, or territory.
https://bugzilla.gnome.org/show_bug.cgi?id=658551
2012-03-05 13:55:04 +00: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
Cosimo Cecchi
c72a3abfe5
language-chooser: disable built-in typeahead search entry
...
Since we already have a filter entry inline, the one provided by
GtkTreeView is just redundant and confusing.
https://bugzilla.gnome.org/show_bug.cgi?id=664503
2011-11-22 09:48:28 -05:00
Bastien Nocera
7ae7da4c31
common: Remove copy-paste egg code
...
Now in GTK+ itself.
https://bugzilla.gnome.org/show_bug.cgi?id=663341
2011-11-04 17:00:39 +00:00
Bastien Nocera
b70c5d64fe
keyboard: Try to parse keycodes better
...
gdk_keyval_from_name() doesn't seem to work as it used to.
https://bugzilla.gnome.org/show_bug.cgi?id=642489
2011-10-27 16:19:21 +01:00
Bastien Nocera
7f5733b454
common: Fix handling of <Primary>
...
As used in the new GTK+ 3.2.1.
https://bugzilla.redhat.com/show_bug.cgi?id=748444
2011-10-24 19:06:27 +01:00
Bastien Nocera
49e81242ca
common: Update linkage rules for static libs
...
No point in limiting the exports symbols for a static library
2011-10-18 19:06:38 +01:00
Rodrigo Moya
95d9cffaaa
region: Always add English to the list, as it should always be available
2011-10-11 16:18:45 +02:00
Bastien Nocera
1a2845dfa4
common: Always collect locales from the directory
...
Even if those locales do not exist in the locale-archive file,
their definition could be in the locale directories. The glibc
will look in directories as well when the locale-archive doesn't
contain it, so both behaviours match.
See also:
http://repo.or.cz/w/glibc.git/blob/HEAD:/locale/findlocale.c#l62
https://bugzilla.gnome.org/show_bug.cgi?id=660725
2011-10-11 12:30:54 +01:00
Rodrigo Moya
3c34c0f029
region: Only show locales for languages that have translations
2011-10-11 13:24:25 +02:00
Rodrigo Moya
bfce91433f
Fix distribution of language chooser glade file
2011-08-30 12:10:49 +02:00
Bastien Nocera
d403011d0e
common: Tweak default user list
2011-08-26 22:45:35 +01: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
3f122250e1
common: Add api for region names
...
Similar to how we format language names, add a variant that
emphasizes the region part of a locale. We show the language
in parentheses as discriminator only where needed.
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
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
Matthias Clasen
ce0ab7e2f4
common: Simplify language display
...
When there is only one locale for this language, omit the territory
and codeset from the descriptive name. This makes the parenthesized
part appear a bit more like a discriminator instead of a wierd
formatting convention.
2011-08-22 14:29:50 -04:00
Bastien Nocera
c95e8b22f6
common: Add list-languages test application
...
Would just list the supported languages, and makes it easier
to debug the absence of a language.
See https://bugzilla.gnome.org/show_bug.cgi?id=656338
2011-08-16 18:08:05 +01:00
Bastien Nocera
ea686a2355
common: Add some more debug when listing languages
2011-08-16 18:08:05 +01:00
Bastien Nocera
8ca85762de
common: Add safeguards for empty language
...
NULL or empty languages aren't useful.
2011-07-07 16:34:08 +01:00
Rodrigo Moya
87baf75e9c
region: Added missing assignment for loop control variable
2011-06-17 11:04:47 +02:00
Frédéric Péters
d0704a6882
Fix linking of libshortcuts against X
...
https://bugzilla.gnome.org/show_bug.cgi?id=644410
2011-03-11 08:54:42 +01:00
Matthias Clasen
3be36e735b
Drop the sync language loading code
...
All users have been ported to use the async variant.
2011-02-23 23:43:16 -05:00
Matthias Clasen
012c52f4f5
Add an async variant of language loading
...
This just code loads one language at a time in an idle,
to avoid blocking the UI for a long time. The function returns
the id of the sources, so you can just call g_source_remove()
if you don't need the languages anymore (e.g if the user goes
to another panel before the list is fully populated).
https://bugzilla.gnome.org/show_bug.cgi?id=643096
2011-02-24 03:12:19 +00:00
Bastien Nocera
3574d8f882
common: Move eggaccelerators to common/
...
So we can share it with the universal-access panel.
2011-02-23 15:40:46 +00:00
Thomas Wood
e2f944a66a
configure: Group pkg-config checks based on how they are used
...
Group the pkg-config checks so that pkg-config can remove duplicated CFLAGS
and LIBS.
https://bugzilla.gnome.org/show_bug.cgi?id=636593
2011-02-19 16:46:26 +00:00
Bastien Nocera
40e2c9eed4
common: Load language names for locales with 3 letters
...
If software with "Chhattisgarhi" translations was loaded (such
as k3b), we would fail to load the language name for it, as we
were not parsing the ISO-639-3 database.
https://bugzilla.gnome.org/show_bug.cgi?id=641373
2011-02-03 19:11:02 +00:00
Yanko Kaneti
7cfa641feb
Avoid using locales without language names.
...
Quick and dirty fix for not using all the iso-codes resources for
finding a suitable language name for a locale.
2011-02-03 18:35:29 +00:00
Bastien Nocera
1edc17e126
common: Add API to select the current language
2011-01-26 18:40:41 +00:00
Bastien Nocera
e48c04a092
common: Remove debug
2011-01-25 18:45:03 +00:00
Bastien Nocera
f7f1b4c073
user-accounts: Move more of the treeview setup to common/
...
Make more of the code common one, so we can re-use it for
the region panel. Show the user's current locale first, as well
as the list of languages used by other users, followed by a separator.
2011-01-25 17:09:10 +00:00
Bastien Nocera
9229ab875e
user-accounts: Move um_get_current_language to common/
2011-01-24 18:26:00 +00:00
Bastien Nocera
dd9be3f2be
common: Add panel name
2011-01-24 18:23:35 +00:00
Bastien Nocera
93832da41f
user-accounts: Move more functions to common/
2011-01-24 18:20:54 +00:00
Bastien Nocera
e2dafa4169
common: Add missing Makefile.am
2011-01-24 18:20:54 +00:00
Bastien Nocera
5dd0a8c47a
user-accounts: Move um_get_iter_for_language to common/
...
More sharing
2011-01-24 18:20:53 +00:00
Bastien Nocera
930540ea28
user-accounts: Move gdm-languages to common/
...
Move gdm-languages and some of the helper functions to common/,
so that we can share it with the region panel.
2011-01-24 18:10:10 +00:00