[gnome-software] trivial: New mockups show the details box for local packages again



commit e819cab2834ee1d743af3f64ae604e6ca153556a
Author: Richard Hughes <richard hughsie com>
Date:   Fri Feb 7 21:17:53 2014 +0100

    trivial: New mockups show the details box for local packages again

 src/gs-shell-details.c |   23 -----------------------
 1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 67266c1..c827b44 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -526,18 +526,6 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
        tmp = gs_app_get_description (priv->app);
        gs_shell_details_set_description (shell_details, tmp);
 
-       /* do not show the 'Details' header if we are a local file and have no
-        * long description */
-       widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "application_details_details_title"));
-       switch (gs_app_get_state (priv->app)) {
-       case GS_APP_STATE_LOCAL:
-               gtk_widget_set_visible (widget, tmp != NULL);
-               break;
-       default:
-               gtk_widget_set_visible (widget, TRUE);
-               break;
-       }
-
        /* set the icon */
        tmp = gs_app_get_metadata_item (priv->app, "DataDir::desktop-icon");
        if (tmp != NULL) {
@@ -692,17 +680,6 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
                break;
        }
 
-       /* only show support box for non-local packages */
-       widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "box_details_support"));
-       switch (gs_app_get_state (priv->app)) {
-       case GS_APP_STATE_LOCAL:
-               gtk_widget_set_visible (widget, FALSE);
-               break;
-       default:
-               gtk_widget_set_visible (widget, TRUE);
-               break;
-       }
-
        /* make history button insensitive if there is none */
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_history"));
        switch (gs_app_get_id_kind (priv->app)) {


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