Commit graph

207 commits

Author SHA1 Message Date
Matthias Clasen
64150f1458 Avoid losing the selection
When the active input sources list is changed in any way (add or
remove or reorder a source), we write the list to the setting,
and then we get a changed signal for the setting, and rebuild
the list from the setting. Doing so loses the selection, unless
we take extra precaution to keep it.

https://bugzilla.gnome.org/show_bug.cgi?id=680027
2012-07-17 00:01:54 -04:00
Matthias Clasen
54835c8f44 Remove one more leftover reference to a filter model
The active input sources are no longer stored in a filter model.
Also, use gtk_list_store_insert_with_values for atomic insertion.
2012-07-16 23:59:03 -04:00
Matthias Clasen
953cc81b0f Region: Remove references to a no-longer-existing filter model
There was some code left around for dealing with a filter model,
but we don't have the active input sources in a filtered list
anymore. This was leading to crashes when removing or rearranging
input sources.
2012-07-16 12:13:18 -04:00
Bastien Nocera
ab0594239c region: Fix compilation failure
A use of the removed tree_view_get_actual_model() crept in.
2012-07-16 17:05:48 +01:00
Bastien Nocera
661019dadc region: Remove unneeded signal blockers
The value isn't going to change from under us, as the settings
object is in delayed mode.
2012-07-16 15:24:23 +01:00
Rui Matos
3579d7bb97 region: Try to keep the current input source when modifying the list
When modifying the input sources list the currently active source's
index might change. We must change the current setting accordingly to
keep it active.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-07-16 15:23:37 +01:00
Rui Matos
49f7d379bc region: Fix a couple of memory leaks
Unref the GSettings object and build the GnomeXkbInfo only
once. There's no need to free and keep rebuilding the latter since it
doesn't keep any state and is a bit expensive to build.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-07-16 15:18:33 +01:00
Bastien Nocera
03f08fd36c region: Never hide items from view
If IBus is unavailable to get the input source's display name,
just show the ID instead, and populate the display name when we get
a change (eg. when fetching the input sources from IBus is done).
2012-07-16 15:17:24 +01:00
Rui Matos
5e737900b0 region: Wire up the input source settings button
For XKB input sources the settings button remains unsensitive. For
IBus sources we make it sensitive and launch the engine's setup tool
on clicked if there is one.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-07-16 15:17:24 +01:00
Rui Matos
412e53079f region: Add IBus input sources
We query IBus for the available engines and present them alongside XKB
layouts.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-07-16 15:17:24 +01:00
Cosimo Cecchi
2e2ad76e59 region: Input Sources tab has a different spacing
The first two tabs have 12px, make this 12px too.

https://bugzilla.gnome.org/show_bug.cgi?id=678168
2012-06-15 11:36:21 -04:00
Bastien Nocera
d07be14ba0 region: Use '&' instead of 'and'
Using "&" not only keeps the names shorter but would also keeps the
user focused on the other words which compose the name.

https://bugzilla.gnome.org/show_bug.cgi?id=676562
2012-06-06 17:45:15 +01:00
Bastien Nocera
e880784fcb region: Update the shortcuts labels on startup
https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 19:01:57 +01:00
Rui Matos
0a78c3504e region: Add XKB input sources
We allow the user to choose from all XKB layouts installed and keep a
user picked list in gsettings.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:38 +01:00
Rui Matos
375bf2363f region: Improved keynav on the input chooser
This makes the dialog return when the user presses Enter on the filter
entry and prevents the GtkTreeView search popup from being used since
we already handle searching on that tree view.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:38 +01:00
Rui Matos
e38f9acf39 region: Improved selection handling on the input chooser
This makes the input chooser list always have a selected row and be
centered on it when the filter is applied.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:38 +01:00
Rui Matos
0fb0d6139b region: Removal of the Layouts tab
https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:38 +01:00
Rui Matos
bfaeb6a41d region: Add an initial input sources tab
This is just the scaffolding according to
https://live.gnome.org/Design/SystemSettings/RegionAndLanguage
No code behind it yet.

Original code from Matthias Clasen.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:37 +01:00
Florian Müllner
79b11894dd region: Add get_help_uri() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:38 +02:00
Piotr Drąg
5f124d6008 all: fix up tooltips
Idea from commit d5088b2eb1.
2012-05-18 18:39:31 +02:00
Bastien Nocera
57bba26311 region: Fix possible crasher with empty layout 2012-03-07 18:27:25 +01:00
Bastien Nocera
22ac9fa06b region: Don't make the dialogue overly wide
https://bugzilla.gnome.org/show_bug.cgi?id=670667
2012-03-07 18:12:12 +01:00
Bastien Nocera
b55d07e47f region: Fix handling of variants in "Copy" button
Instead of splitting the list of layouts into layouts and variants,
we were expecting strings of the form:
layout1 variant1, layout2 variant2
to be handled automatically. We should instead create the lists
of layouts and variants separately before passing them to localed.

https://bugzilla.gnome.org/show_bug.cgi?id=670607
2012-02-22 20:40:38 +01:00
Bastien Nocera
f3a8805d30 region: Remove useless assignments 2012-02-22 15:24:52 +01:00
Robert Ancell
a1b60db059 region: Stop using deprecated gtk_vbox_new
https://bugzilla.gnome.org/show_bug.cgi?id=669620
2012-02-08 12:11:02 +00:00
Sergey V. Udaltsov
ca2186e7a7 region: Fix rendering of the layout list in the "add layout" popup
When enabled, "extra" layouts are rendered as italic.
It was broken, the markup was visible literally - now it is real italic text

Signed-off-by: Sergey V. Udaltsov <svu@gnome.org>
2011-12-25 03:00:02 +00:00
Florian Müllner
4cd7b6c6dc .desktop: Drop prefix from X-GNOME-Keywords
The field has now been included in the spec, so use the standardized
name.
2011-12-19 16:26:40 +01:00
Bastien Nocera
6665b60422 panels: Update for Shell API changes 2011-11-07 18:03:14 +00:00
Bastien Nocera
5afe1be01a region: Add label to toolbar buttons 2011-10-25 17:47:17 +01:00
Bastien Nocera
6d38216573 region: Small style fix 2011-10-18 18:46:15 +01:00
Bastien Nocera
8a0c2e1b27 region: Align the example dates
By removing leading spaces.
2011-10-03 14:32:59 +01:00
Antoine Jacoutot
7b8b773cf3 region: Fix build on systems without LC_MEASUREMENT
LC_MEASUREMENT is not posix and may not be defined on all systems.

https://bugzilla.gnome.org/show_bug.cgi?id=660787
2011-10-03 14:32:55 +01:00
Bastien Nocera
6a9881d75f region: Implement copying layouts
Using systemd's SetX11Keyboard() method in localed. Disable
the functionality altogether if systemd is not found.

This version supports multiple keyboard layouts by passing comma
separated layouts, as supported by X11.

https://bugzilla.gnome.org/show_bug.cgi?id=659300
2011-10-03 12:29:49 +01:00
Bastien Nocera
5fb0ae9391 region: Simplify getting the current Locale 2011-09-29 16:54:44 +01:00
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