Commit graph

224 commits

Author SHA1 Message Date
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
8d5f2908b5 panels: add --sourcedir=$(srcdir) when generating resource list
Like b8e93fb333 but for all panels.
2013-01-07 16:23:57 -05:00
Cosimo Cecchi
57adcbe951 common: add the GResource to EXTRA_DIST
I had this squashed locally and it was missing from the patch that was
committed.
2013-01-07 16:23:32 -05:00
Bastien Nocera
48111d4396 common: Re-add used DATADIR macro 2013-01-07 12:07:41 +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
Cosimo Cecchi
15fee44aa3 region: fix button area alignment glitch
Use the same logic the input sources dialog does to avoid the buttons
going off-balance.

https://bugzilla.gnome.org/show_bug.cgi?id=678513
2012-12-13 12:19:10 +01:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +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
Bastien Nocera
ab720ab6a9 common: Allow editing UI file with Glade for GTK+ 3.x 2012-12-10 15:34:20 +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
Bastien Nocera
becfb7a7c8 common: Fix other user's languages never getting added
Because we were looking for a locale directory with the extra
codeset (xx_XX.utf8) instead of without it.
2012-12-10 15:06:14 +01:00
Bastien Nocera
fb1f2baea5 common: Show popular languages in their own language
Instead of the current one.

https://bugzilla.gnome.org/show_bug.cgi?id=684861
2012-12-10 14:37:54 +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
Bastien Nocera
b30497a3bd common: Use language name translations from iso-codes 2012-11-27 11:19:13 +01:00
Jens Petersen
5bf6c416f0 common: add Japanese to the popular languages
Eigth place in the list:
http://www.andaman.org/BOOK/reprints/weber/rep-weber.htm

https://bugzilla.gnome.org/show_bug.cgi?id=684845
2012-11-27 11:19:13 +01:00
Bastien Nocera
3eb6cdd1bc common: Try to get the configured language as the current one 2012-11-23 18:51:49 +01:00
Bastien Nocera
781bda8e12 common: Split out getting the lang for a user
Into get_lang_for_user(), so it can be reused internally.
2012-11-23 18:51:49 +01:00
Bastien Nocera
7889482576 info: Set the transient hostname too
As we need that to get the right name from "hostname".
2012-11-16 19:59:49 +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
Thomas Wood
288c3f8309 common: remove the use of the deprecated g_type_init function
The g_type_init function was deprecated in glib 2.35.1 and the type system
is now initialised automatically.

https://bugzilla.gnome.org/show_bug.cgi?id=688231
2012-11-13 10:44:53 +00:00
Bastien Nocera
21c7325f1c common: Quiet valgrind when checking lang codeset 2012-11-05 09:37:54 +01:00
Bastien Nocera
2a24b5978e common: Fix list-languages build 2012-10-01 09:32:18 +02:00
Bastien Nocera
fbddd14a45 common: Add i18n support to language test app 2012-09-30 05:43:06 +02:00
Bastien Nocera
f48db43be9 common: Add more debug for select_current_language() 2012-09-26 22:55:18 +02: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
Javier Jardón
b682a3c6e9 common: Add Arabic as a common language
https://bugzilla.gnome.org/show_bug.cgi?id=671530
2012-08-22 16:17:20 +01:00
Bastien Nocera
0e2b4a9600 common: Add Russian as a common language
https://bugzilla.gnome.org/show_bug.cgi?id=671530
2012-08-22 16:16:14 +01:00
Colin Walters
20a980d6ca Fix missing = 2012-08-22 09:42:18 -04:00
Matthias Clasen
4d62e05fb0 common: Add Policykit rules for hostname setting
Allow setting the computer's pretty hostname if the user is an admin.

https://bugzilla.gnome.org/show_bug.cgi?id=679281
2012-08-22 14:16:46 +01:00
Jasper St. Pierre
d2aa0ce5d8 common: Fix memory leaks in language sorting
https://bugzilla.gnome.org/show_bug.cgi?id=679836
2012-08-22 13:47:40 +01:00
Bastien Nocera
44f742659e common: Add more debug to list-languages 2012-08-21 17:43:27 +01:00
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