summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-02-19 16:05:39 -0700
committerJohn Stebbins <[email protected]>2019-02-19 16:07:35 -0700
commita34220c7d2a99bad2330098b2426645df037136b (patch)
tree5b26d4876d5fdaeb1e651fed2d9356db0cb75c1e /gtk/src/hb-backend.c
parentc99462789138159261c4d8a09cb8bb90d119aace (diff)
LinGui: adjust the size of subtitle widgets
Make language text smaller. Some of the native characters are quite tall and result in an overly tall widget. Fixes https://github.com/HandBrake/HandBrake/issues/1869
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index a638487f6..b80bed556 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -1980,12 +1980,12 @@ language_opts_set(signal_user_data_t *ud, const gchar *name,
for (iso639 = lang_get_next(NULL), ii = 0; iso639 != NULL;
iso639 = lang_get_next(iso639), ii++)
{
- const gchar *lang;
+ gchar *lang;
if (iso639->native_name[0] != 0)
- lang = iso639->native_name;
+ lang = g_strdup_printf("<small>%s</small>", iso639->native_name);
else
- lang = iso639->eng_name;
+ lang = g_strdup_printf("<small>%s</small>", iso639->eng_name);
gtk_list_store_append(store, &iter);
gtk_list_store_set(store, &iter,
@@ -1994,6 +1994,7 @@ language_opts_set(signal_user_data_t *ud, const gchar *name,
2, iso639->iso639_2,
3, (gdouble)ii,
-1);
+ g_free(lang);
}
g_signal_connect(combo, "key-press-event", combo_search_key_press_cb, ud);
}