[gnome-software] trivial: Fix a tiny compiler warning



commit 767e26b089c357606cc155c0a2e0bdc813e11537
Author: Richard Hughes <richard hughsie com>
Date:   Tue Feb 25 15:25:13 2014 +0000

    trivial: Fix a tiny compiler warning

 src/gs-shell-details.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 9fe3d69..5fbb772 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -704,12 +704,12 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
 
        /* make history button insensitive if there is none */
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_history"));
+       history = gs_app_get_history (priv->app);
        switch (gs_app_get_id_kind (priv->app)) {
        case GS_APP_ID_KIND_WEBAPP:
                gtk_widget_set_visible (widget, FALSE);
                break;
        default:
-               history = gs_app_get_history (priv->app);
                gtk_widget_set_sensitive (widget, history->len > 0);
                gtk_widget_set_visible (widget, TRUE);
                break;


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