diff options
author | John Stebbins <[email protected]> | 2018-06-11 15:15:01 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2018-06-11 15:15:01 -0700 |
commit | 3368d37a980f5f31182fca5c22e175f444ccae9f (patch) | |
tree | d3fb7ad4f7a3fb994f0a5cb1185c04625883da13 /gtk/src/hb-backend.c | |
parent | 41a339fc64c06f104f8925a1c741bc9c5d28a8e4 (diff) |
LinGui: add search function to language popups
The language list is long and displays native names while sorted by
English names, so it is difficult to find a language. This adds the
ability to "search" for a language based on it's initial character.
Typing a character will jump to the next entry that starts with that
character in its native name.
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 3d947c8c1..433e21bfc 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -2016,6 +2016,8 @@ srt_codeset_opts_set(signal_user_data_t *ud, const gchar *name, } } +extern G_MODULE_EXPORT void combo_search_key_press_cb(void); + static void language_opts_set(signal_user_data_t *ud, const gchar *name, void *opts, const void* data) @@ -2048,6 +2050,7 @@ language_opts_set(signal_user_data_t *ud, const gchar *name, 3, (gdouble)ii, -1); } + g_signal_connect(combo, "key-press-event", combo_search_key_press_cb, ud); } gchar* |