[gnome-software] Never show star ratings on the category app tiles



commit 65f1a11340af10f1baef9904df7ed638b1f4b0d5
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 2 13:49:16 2016 +0000

    Never show star ratings on the category app tiles

 src/app-tile.ui   |   12 ------------
 src/gs-app-tile.c |   11 -----------
 2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/app-tile.ui b/src/app-tile.ui
index dfbfbcc..74879ad 100644
--- a/src/app-tile.ui
+++ b/src/app-tile.ui
@@ -99,18 +99,6 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GsStarWidget" id="stars">
-                    <property name="visible">False</property>
-                    <property name="halign">start</property>
-                  </object>
-                  <packing>
-                    <property name="left-attach">1</property>
-                    <property name="top-attach">1</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-                <child>
                   <object class="GtkLabel" id="summary">
                     <property name="visible">True</property>
                     <property name="ellipsize">end</property>
diff --git a/src/gs-app-tile.c b/src/gs-app-tile.c
index d649c2b..5d58eb0 100644
--- a/src/gs-app-tile.c
+++ b/src/gs-app-tile.c
@@ -38,7 +38,6 @@ struct _GsAppTile
        GtkWidget       *summary;
        GtkWidget       *eventbox;
        GtkWidget       *stack;
-       GtkWidget       *stars;
        gint             preferred_width;
 };
 
@@ -143,14 +142,6 @@ gs_app_tile_set_app (GsAppTile *tile, GsApp *app)
        if (!app)
                return;
 
-       if (gs_app_get_rating (tile->app) >= 0) {
-               gtk_widget_set_visible (tile->stars, TRUE);
-               gs_star_widget_set_rating (GS_STAR_WIDGET (tile->stars),
-                                          gs_app_get_rating (tile->app));
-       } else {
-               gtk_widget_set_visible (tile->stars, FALSE);
-       }
-
        gtk_stack_set_visible_child_name (GTK_STACK (tile->stack), "content");
 
        g_signal_connect (tile->app, "notify::state",
@@ -184,7 +175,6 @@ gs_app_tile_init (GsAppTile *tile)
        gtk_widget_set_has_window (GTK_WIDGET (tile), FALSE);
        tile->preferred_width = -1;
        gtk_widget_init_template (GTK_WIDGET (tile));
-       gs_star_widget_set_icon_size (GS_STAR_WIDGET (tile->stars), 12);
 }
 
 static void
@@ -293,7 +283,6 @@ gs_app_tile_class_init (GsAppTileClass *klass)
        gtk_widget_class_bind_template_child (widget_class, GsAppTile, summary);
        gtk_widget_class_bind_template_child (widget_class, GsAppTile, eventbox);
        gtk_widget_class_bind_template_child (widget_class, GsAppTile, stack);
-       gtk_widget_class_bind_template_child (widget_class, GsAppTile, stars);
 }
 
 GtkWidget *


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