[shotwell] SearchBar: Remove star icons



commit db76214268f16829125bc3b89e8381c8230ecb49
Author: Jens Georg <mail jensge org>
Date:   Wed Nov 16 23:09:32 2016 +0100

    SearchBar: Remove star icons
    
    Signed-off-by: Jens Georg <mail jensge org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771788

 src/SearchFilter.vala |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala
index d947bfa..1fb0fe1 100644
--- a/src/SearchFilter.vala
+++ b/src/SearchFilter.vala
@@ -830,7 +830,29 @@ public class SearchFilterToolbar : Gtk.Revealer {
 
         public void set_filter_icon(RatingFilter filter) {
             button.set_always_show_image(true);
-            button.set_image(get_filter_icon(filter));
+            switch (filter) {
+            case RatingFilter.ONE_OR_HIGHER:
+                button.set_label (_("★+ Rating"));
+                break;
+            case RatingFilter.TWO_OR_HIGHER:
+                button.set_label (_("★★+ Rating"));
+                break;
+            case RatingFilter.THREE_OR_HIGHER:
+                button.set_label (_("★★★+ Rating"));
+                break;
+            case RatingFilter.FOUR_OR_HIGHER:
+                button.set_label (_("★★★★+ Rating"));
+                break;
+            case RatingFilter.FIVE_ONLY:
+            case RatingFilter.FIVE_OR_HIGHER:
+                button.set_label (_("★★★★★+ Rating"));
+                break;
+            default:
+                button.set_label (_("Rating"));
+                button.set_image(get_filter_icon(filter));
+                break;
+            }
+
             set_size_request(get_filter_button_size(filter), -1);
             set_tooltip_text(Resources.get_rating_filter_tooltip(filter));
             set_has_tooltip(true);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]