Mercurial > hg > forks > geeqie
diff src/preferences.c @ 2500:eb2ce489ceea
Fix #323: Rating system
https://github.com/BestImageViewer/geeqie/issues/323
Initial implementation.
Set values either by Edit menu, or Alt+Keypad+n: n is 0 to 5
Alt+keypad+minus sets the value to -1.
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Thu, 08 Jun 2017 20:46:52 +0100 |
parents | 33571d08bc37 |
children | b5cec98159e7 |
line wrap: on
line diff
--- a/src/preferences.c Thu Jun 08 11:46:20 2017 +0100 +++ b/src/preferences.c Thu Jun 08 20:46:52 2017 +0100 @@ -370,6 +370,7 @@ 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; + options->info_rating.height = c_options->info_rating.height; #ifdef DEBUG set_debug_level(debug_c); @@ -1486,6 +1487,9 @@ pref_spin_new_int(hbox, _("Comment:"), NULL, 1, 9999, 1, options->info_comment.height, &c_options->info_comment.height); + pref_spin_new_int(hbox, _("Rating:"), NULL, + 1, 9999, 1, + options->info_rating.height, &c_options->info_rating.height); } /* image tab */