Commit graph

37 commits

Author SHA1 Message Date
Rui Matos
2e45eeaa36 region: Be more thorough in cc_input_chooser_reset()
This should result in returning to the initial state as intended
instead of keeping the filter entry shown and the filter applied.

https://bugzilla.gnome.org/show_bug.cgi?id=765909
2016-05-13 18:39:23 +02:00
Rui Matos
ff656743f4 region: Handle escape in the input chooser's filter entry
Reset the chooser on escape.

https://bugzilla.gnome.org/show_bug.cgi?id=765909
2016-05-13 18:39:23 +02:00
Debarshi Ray
46f19022ef region: Use listbox header helper
https://bugzilla.gnome.org/show_bug.cgi?id=760582
2016-01-13 16:56:11 +01:00
Rui Matos
3b14056a01 region: Fix the input chooser add button sensitiveness logic
Going back when the back row just gets selected breaks keyboard
navigation. This behavior got introduced by mistake in commit
f28e06a4. Instead, let's just do the add button sensitiveness logic
here. The back row still works when activated.

https://bugzilla.gnome.org/show_bug.cgi?id=754524
2015-09-07 16:45:03 +02:00
Rui Matos
6434213a89 region: Set a sensible height on the input chooser
On systems that have only a few locales installed we might end up
starting with an awkwardly small height. To avoid that we can set our
initial height to be the same as the main window.

https://bugzilla.gnome.org/show_bug.cgi?id=753537
2015-08-18 11:14:57 +02:00
Rui Matos
66604d4ae6 region: Don't ever show all input sources in the chooser
While filtering we're adding all the input source rows to the
GtkListBox. This is a performance issue since GtkListBox doesn't
really cope with a big number of rows.

Instead, we'll filter the locale rows in a way such that we'll show a
locale row for which any input source name matches. From this filtered
locales view, users will still need to activate a locale row to get to
the input source rows view.

https://bugzilla.gnome.org/show_bug.cgi?id=752383
2015-07-22 16:10:27 +02:00
Rui Matos
f2f4626f64 region: Avoid overly long labels causing horizontal scrolling
Just ellipsize them instead.

https://bugzilla.gnome.org/show_bug.cgi?id=752383
2015-07-15 15:24:27 +02:00
Joaquim Rocha
abb0592866 region: Reuse the input chooser instance
The language input chooser is being created and destroyed every time
it is opened and closed. This is noticeably slow and is hardly
necessary as the values it contains should not change.

To fix this, these changes reuse the same instance of the input chooser
(by hiding and showing it) instead of renewing it.
The input chooser is also now shown using gtk_dialog_run to avoid having
it destroyed from the default delete event.
2015-03-10 19:45:07 +01:00
Joaquim Rocha
bd6347d02a region: Clear input chooser rows instead of unrefing them
These changes prevent warnings when unreferencing the default input
source, locale and back rows which are never instanced by some locales
(and thus null).
2015-03-10 19:45:07 +01:00
Joaquim Rocha
bbae930988 region: Fix leak in input chooser
The language input chooser is being leaked. The reason for the leak
is a "circular reference": the input chooser keeps a GtkBuilder
instance that gets destroyed when the chooser is, itself, destroyed.
However, the input chooser is never destroyed because the GtkBuilder
instance keeps a reference to it.

These changes dismiss the GtkBuilder once it is no longer needed in the
input chooser which fixes the leak.
2015-03-10 19:45:07 +01:00
Rui Matos
1029d0c69a region: Don't show IBus sources in the system-wide input chooser
Since we can't export IBus sources through the localed API we
shouldn't even allow users to choose them.

This allows us to stop having to show an apologising dialog which
makes us look a bit bad and was using deprecated gtk+ API that we're
trying to get rid of. Instead, we show the same information up front,
in the input chooser.

https://bugzilla.gnome.org/show_bug.cgi?id=740986
2015-01-06 16:17:36 +01:00
Rui Matos
6686a79158 region: Fix deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:13:29 +01:00
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
Cosimo Cecchi
422166f320 region: don't crash for locales with no country_code
gnome_parse_locale() can return an empty country_code for some locales,
which we are not taking into account when building the simple_locale
string.

https://bugzilla.gnome.org/show_bug.cgi?id=738963
2014-10-22 15:46:28 -07:00
Rui Matos
f28e06a4b3 region: Make it possible to add an input source by activating its row
Selecting and pressing the Add button continues to work but this
should streamline the the input chooser dialog for mouse users by
making it possible to add by double clicking a row.

https://bugzilla.gnome.org/show_bug.cgi?id=732720
2014-07-18 16:05:33 +02:00
Yosef Or Boczko
4d403f4a8b region: Use the new support for RTL icons in GtkIconTheme
https://bugzilla.gnome.org/show_bug.cgi?id=730597
2014-05-23 12:31:36 +03:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Yosef Or Boczko
80aaf11b1a region: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:29:36 +02:00
Bastien Nocera
f9db0a832d region: Use new delayed search entry API
https://bugzilla.gnome.org/show_bug.cgi?id=705151
2013-07-30 16:57:29 +02:00
Alexander Larsson
1db26b435a region: Convert to GtkListBox
https://bugzilla.gnome.org/show_bug.cgi?id=702164
2013-07-02 16:19:09 +01:00
Rui Matos
cdc4bfe3a9 region: Set button arrow icons according to locale's text direction
https://bugzilla.gnome.org/show_bug.cgi?id=700543
2013-06-05 11:27:33 +02:00
Matthias Clasen
16c2a04e5e Add context to some translated strings
We are using "Other" in various contexts that may require
different translations.
https://bugzilla.gnome.org/show_bug.cgi?id=697211
2013-05-18 18:05:18 -04:00
Rui Matos
7262670c7a region: Rate limit the input chooser filtering
Acting on every keystroke makes the UI sluggish given the number of
widgets we have so let's rate limit this to a reasonable frequency
that still feels responsive.

https://bugzilla.gnome.org/show_bug.cgi?id=695466
2013-05-13 17:02:57 +02:00
Rui Matos
561c68674b region: Stop focusing the input chooser entry if already focused
Since doing so selects the entry's text and thus is prone to cause
accidental deletion.

https://bugzilla.gnome.org/show_bug.cgi?id=695466
2013-05-13 17:02:55 +02:00
Rui Matos
639a2e4ada region: Center labels and remove arrows on the input chooser dialog
https://bugzilla.gnome.org/show_bug.cgi?id=695520
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
ee9dc7a176 region: Add separators to the input chooser list
https://bugzilla.gnome.org/show_bug.cgi?id=695465
2013-04-15 11:53:27 +02:00
Rui Matos
b405db0068 region: Normalize and casefold the untranslated language name
So that it actually matches with the normalized and casefolded filter
words.

https://bugzilla.gnome.org/show_bug.cgi?id=695357
2013-03-14 17:17:47 +01:00
Rui Matos
765b6b52a7 region: Always add ibus engine widgets regardless of locale info
This makes sure any engine we don't have locale info for ends up under
the Other row.

https://bugzilla.gnome.org/show_bug.cgi?id=695049
2013-03-11 13:46:23 +01:00
Rui Matos
771664ac50 region: Factor out adding source widgets code
https://bugzilla.gnome.org/show_bug.cgi?id=695049
2013-03-11 13:46:19 +01:00
Ángel Guzmán Maeso
422542d5a0 region: Fix warnings about uninitialized variables
In cc-input-chooser.c

https://bugzilla.gnome.org/show_bug.cgi?id=694362
2013-02-21 17:08:25 +01:00
Rui Matos
ef4576b4f4 Check gtk_builder_add_from_resource() return value 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
80e7738210 region: Dim the icons on IBus input source rows 2013-02-19 12:25:56 +01:00
Rui Matos
2b07d810aa region: New 'Add Input Source' dialog design 2013-02-19 12:25:55 +01:00
Matthias Clasen
4f121592d7 Rename input chooser ui file 2013-02-19 12:25:52 +01:00
Matthias Clasen
d3852fc831 Wip: new region panel
Still missing:
- restart session notification
- login screen mode
2013-02-19 12:25:52 +01:00