X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=src%2Fview-file%2Fview-file-icon.cc;fp=src%2Fview-file%2Fview-file-icon.cc;h=56b9e54272a0cdbb83e4d8183d23e8425d22264d;hp=fe7c180badbccd5fc58ed1564e4b3c8a1bd45735;hb=98b2cdbeb4fada4a4e123bf0779a11067a6deae5;hpb=e57cfab83e6ca160d4a1240cc74f6da99bc507b0 diff --git a/src/view-file/view-file-icon.cc b/src/view-file/view-file-icon.cc index fe7c180b..56b9e542 100644 --- a/src/view-file/view-file-icon.cc +++ b/src/view-file/view-file-icon.cc @@ -138,23 +138,14 @@ void vficon_pop_menu_show_names_cb(GtkWidget *, gpointer data) vficon_toggle_filenames(vf); } -static void vficon_toggle_star_rating(ViewFile *vf) +void vficon_pop_menu_show_star_rating_cb(ViewFile *vf) { GtkAllocation allocation; - options->show_star_rating = !options->show_star_rating; - gtk_widget_get_allocation(vf->listview, &allocation); vficon_populate_at_new_size(vf, allocation.width, allocation.height, TRUE); } -void vficon_pop_menu_show_star_rating_cb(GtkWidget *, gpointer data) -{ - auto vf = static_cast(data); - - vficon_toggle_star_rating(vf); -} - void vficon_pop_menu_refresh_cb(GtkWidget *, gpointer data) { auto vf = static_cast(data);