[gnome-software] details: Don't show missing history on a local package install



commit 628ac71fc9be2bad00c20678056043130c42109d
Author: Kalev Lember <kalevlember gmail com>
Date:   Mon Feb 24 18:21:02 2014 +0100

    details: Don't show missing history on a local package install
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724669

 src/gs-shell-details.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 2748c9f..45314f1 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -715,6 +715,11 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
                break;
        }
 
+       /* don't show missing history on a local file */
+       if (gs_app_get_state (priv->app) == GS_APP_STATE_LOCAL &&
+           history->len == 0)
+               gtk_widget_set_visible (widget, FALSE);
+
        /* are we trying to replace something in the baseos */
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "infobar_details_package_baseos"));
        switch (gs_app_get_kind (priv->app)) {


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