diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/viewer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/viewer.c b/examples/viewer.c index 1fb93ef8..84b7b25d 100644 --- a/examples/viewer.c +++ b/examples/viewer.c @@ -426,7 +426,7 @@ set_style (GtkWidget *entry, gpointer data) void font_size_changed (GtkAdjustment *adj) { - font_description.size = (int)(adj->value * 1000 + 0.5); + font_description.size = (int)(adj->value * PANGO_SCALE + 0.5); reload_font(); } @@ -520,6 +520,12 @@ make_styles_combo () return combo; } +static int +cmp_strings (const void *a, const void *b) +{ + return strcmp (*(const char **)a, *(const char **)b); +} + GtkWidget * make_families_menu () { |