Commit graph

167 commits

Author SHA1 Message Date
Rui Matos
880f9f1475 Use 'UTF-8' instead of 'utf8' as locale codeset suffix
This makes us work on OpenBSD's libc. GNU libc accepts both suffixes.

https://bugzilla.gnome.org/show_bug.cgi?id=710412
2014-10-29 13:59:14 +01:00
Bastien Nocera
633af27f2d common: Make Done button in language chooser blue
https://bugzilla.gnome.org/show_bug.cgi?id=737966
2014-10-17 12:19:41 +02:00
Ondrej Holy
066d66383e cc-language-chooser: Reset dialog to original state when used the 2nd time
The language chooser dialog is used in the users panel repeatedly.
When we click to show more languages and/or select language, close
the dialog and show it again e.g. for different user, the chooser
isn't in an original state. So filter entry isn't hidden (and all
languages are shown) and/or the last selected language is focused.
But the dialog should be in the original state when it is open.

This patch changes cc_language_chooser_clear_filter to clear the
dialog into the original state that we can reuse the dialog later.

https://bugzilla.gnome.org/show_bug.cgi?id=738077
2014-10-15 16:26:16 +02:00
Rui Matos
cf0c9f6134 common: Add Cancel/OK buttons to the language chooser
These were lost with the transition to headerbars.

https://bugzilla.gnome.org/show_bug.cgi?id=732725
2014-07-18 16:05:42 +02:00
Bastien Nocera
e722599ac7 common: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:30 +02:00
Yosef Or Boczko
ff36ee5f6b common: Use header bar in the language chooser dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Yosef Or Boczko
bd1422980b common: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:29:53 +02:00
Kalev Lember
88eeb8cb2d common: Ship a PolicyKit rule for the datetime panel
Allow local admins with an active session use the Date & Time panel
without requiring a password.

https://bugzilla.gnome.org/show_bug.cgi?id=646185
2013-08-19 15:09:05 +01:00
Jasper St. Pierre
2f1d233a64 language-chooser: Remove unneeded variables 2013-08-02 09:24:45 -04:00
Jasper St. Pierre
2d1f1e8131 language-chooser: Fix code style 2013-08-02 09:24:36 -04:00
Bastien Nocera
36ad07fdc7 common: Use new delayed search entry API
https://bugzilla.gnome.org/show_bug.cgi?id=705151
2013-07-30 16:57:34 +02:00
Alexander Larsson
a07825a58e language-chooser: Convert to GtkListBox
https://bugzilla.gnome.org/show_bug.cgi?id=702164
2013-07-02 16:19:09 +01:00
Thomas Wood
0221ffefa1 common: ensure the current language has a display name in the model
https://bugzilla.gnome.org/show_bug.cgi?id=702344
2013-06-28 11:08:45 +01:00
Rui Matos
260a739eb8 language-chooser: Fix a compiler warning 2013-05-27 17:43:03 +02:00
Rui Matos
fe85605180 Revert "language-chooser: Add separators between choices"
This reverts commit d3faf9cf8a.
2013-05-27 17:33:34 +02:00
Rui Matos
6183b09d86 language-chooser: Fix previous commit
Commit 2d3ed3468a moved code around but
introduced an older version which doesn't quite work.
2013-05-27 17:31:34 +02:00
Rui Matos
1f03f33230 Remove the input-source-switcher setting
Mutter now has a special modifiers-only shortcut used by gnome-shell
to switch input sources which no longer uses this setting.

This reverts commit ae3014ba3e.
This reverts commit 77b7569c3d.

https://bugzilla.gnome.org/show_bug.cgi?id=700346
2013-05-27 10:23:26 +02:00
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
0b7479572e Revert "Revert "Use a common definition for modifier-only keybindings array""
This reverts commit 34906dba27.
2013-05-13 16:26:01 +02:00
Rui Matos
34906dba27 Revert "Use a common definition for modifier-only keybindings array"
This reverts commit ae3014ba3e.
2013-05-13 16:22:00 +02:00
Kalev Lember
29498bb20a common: Fix criticals when user language getting fails
Handle the error case when the call to the accountservice dbus proxy
object fails.

https://bugzilla.gnome.org/show_bug.cgi?id=699378
2013-05-01 15:25:36 +02:00
Rui Matos
6154170bb3 region: Apply user settings system-wide on single account systems
On single account systems we don't show the login button but the user
should still be able to set system-wide locale settings. We can simply
export the user's own settings to the system in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=694922
2013-04-15 11:53:27 +02: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
ae3014ba3e Use a common definition for modifier-only keybindings array 2013-02-19 12:25:56 +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
cfa16a070d Move cc-util into panels/common
We need this in some panels too.
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
f457cc8cc4 common: Cleanup initial languages code
There's no need to use our own translations and setlocale() directly
since gnome-languages already does that for us.
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
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