[gnome-software] Reset the headerbar title when switching to the details page



commit c11117ff57a1ba0ff95e777c7ced7061dcb86c32
Author: Kalev Lember <klember redhat com>
Date:   Wed Mar 8 14:07:30 2017 +0100

    Reset the headerbar title when switching to the details page
    
    When the initial page load takes a bit of time, e.g. when loading a
    flatpakref, we may not have all the information right away to show. This
    commit fixes this case to make sure we don't show a stray title from
    a previous details page run while the flatpakref is loading.

 src/gs-details-page.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index e3d18de..bb47b84 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -245,6 +245,7 @@ gs_details_page_switch_to (GsPage *page, gboolean scroll_up)
        }
 
        widget = GTK_WIDGET (gtk_builder_get_object (self->builder, "application_details_header"));
+       gtk_label_set_label (GTK_LABEL (widget), "");
        gtk_widget_show (widget);
 
        /* not set, perhaps file-to-app */


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