Mercurial > hg > forks > geeqie
diff src/preferences.c @ 2482:9b050f7e7b6c
Fix #445: Info sidebar section heights
https://github.com/BestImageViewer/geeqie/issues/445
Options in preferences/general to set heights of:
Title
Comment
Keywords
Restart of Geeqie required for changes to take effect.
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Mon, 22 May 2017 13:35:40 +0100 |
parents | f591509cb3d3 |
children | 33571d08bc37 |
line wrap: on
line diff
--- a/src/preferences.c Fri May 19 19:49:47 2017 +0100 +++ b/src/preferences.c Mon May 22 13:35:40 2017 +0100 @@ -367,6 +367,10 @@ options->stereo.fixed_x2 = c_options->stereo.fixed_x2; options->stereo.fixed_y2 = c_options->stereo.fixed_y2; + options->info_keywords.height = c_options->info_keywords.height; + options->info_title.height = c_options->info_title.height; + options->info_comment.height = c_options->info_comment.height; + #ifdef DEBUG set_debug_level(debug_c); #endif @@ -1414,6 +1418,7 @@ static void config_tab_general(GtkWidget *notebook) { GtkWidget *vbox; + GtkWidget *hbox; GtkWidget *group; GtkWidget *subgroup; GtkWidget *button; @@ -1468,6 +1473,18 @@ pref_checkbox_new_int(group, _("Refresh on file change"), options->update_on_time_change, &c_options->update_on_time_change); + + group = pref_group_new(vbox, FALSE, _("Info sidebar"), GTK_ORIENTATION_VERTICAL); + hbox = pref_box_new(group, FALSE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_SPACE); + pref_spin_new_int(hbox, _("Keywords height:"), NULL, + 1, 9999, 1, + options->info_keywords.height, &c_options->info_keywords.height); + pref_spin_new_int(hbox, _("Title height:"), NULL, + 1, 9999, 1, + options->info_title.height, &c_options->info_title.height); + pref_spin_new_int(hbox, _("Comment height:"), NULL, + 1, 9999, 1, + options->info_comment.height, &c_options->info_comment.height); } /* image tab */