[gnome-software] Featured Banner: remove heading above banner



commit 12bd15f5870e8d4150e38a896cb6aa4f68af0235
Author: Tobias Bernard <tbernard gnome org>
Date:   Mon Jan 13 19:34:26 2020 +0100

    Featured Banner: remove heading above banner

 src/gs-overview-page.c  |  4 ----
 src/gs-overview-page.ui | 15 ---------------
 2 files changed, 19 deletions(-)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index f4584437..a97b2d51 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -53,7 +53,6 @@ typedef struct
        GtkWidget               *box_popular;
        GtkWidget               *box_popular_rotating;
        GtkWidget               *box_recent;
-       GtkWidget               *featured_heading;
        GtkWidget               *category_heading;
        GtkWidget               *flowbox_categories;
        GtkWidget               *popular_heading;
@@ -456,7 +455,6 @@ gs_overview_page_get_featured_cb (GObject *source_object,
                priv->featured_rotate_timer_id = 0;
        }
 
-       gtk_widget_hide (priv->featured_heading);
        gs_container_remove_all (GTK_CONTAINER (priv->stack_featured));
        gtk_widget_set_visible (priv->overlay, gs_app_list_length (list) > 0);
        gtk_widget_set_visible (priv->button_featured_back, gs_app_list_length (list) > 1);
@@ -485,7 +483,6 @@ gs_overview_page_get_featured_cb (GObject *source_object,
                                  G_CALLBACK (app_tile_clicked), self);
                gtk_container_add (GTK_CONTAINER (priv->stack_featured), tile);
        }
-       gtk_widget_show (priv->featured_heading);
 
        priv->empty = FALSE;
        featured_reset_rotate_timer (self);
@@ -1049,7 +1046,6 @@ gs_overview_page_class_init (GsOverviewPageClass *klass)
        gtk_widget_class_bind_template_child_private (widget_class, GsOverviewPage, box_popular_rotating);
        gtk_widget_class_bind_template_child_private (widget_class, GsOverviewPage, box_recent);
        gtk_widget_class_bind_template_child_private (widget_class, GsOverviewPage, category_heading);
-       gtk_widget_class_bind_template_child_private (widget_class, GsOverviewPage, featured_heading);
        gtk_widget_class_bind_template_child_private (widget_class, GsOverviewPage, flowbox_categories);
        gtk_widget_class_bind_template_child_private (widget_class, GsOverviewPage, popular_heading);
        gtk_widget_class_bind_template_child_private (widget_class, GsOverviewPage, recent_heading);
diff --git a/src/gs-overview-page.ui b/src/gs-overview-page.ui
index 241cb9b6..e83bc178 100644
--- a/src/gs-overview-page.ui
+++ b/src/gs-overview-page.ui
@@ -76,21 +76,6 @@
                         <property name="hexpand">False</property>
                         <property name="border_width">12</property>
                         <property name="orientation">vertical</property>
-                        <child>
-                          <object class="GtkLabel" id="featured_heading">
-                            <property name="visible">True</property>
-                            <property name="xalign">0</property>
-                            <property name="label" translatable="yes">Featured Applications</property>
-                            <property name="margin-top">6</property>
-                            <property name="margin-bottom">12</property>
-                            <accessibility>
-                              <relation target="flowbox_categories" type="label-for"/>
-                            </accessibility>
-                            <style>
-                              <class name="index-title-alignment-software"/>
-                            </style>
-                          </object>
-                        </child>
                         <child>
                           <object class="GtkOverlay" id="overlay">
                             <property name="visible">True</property>


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