[gnome-software] app widget: Don't reserve space for buttons in the update viewing mode



commit 53b30d7c16b21806ac64580b7c19983ae8148058
Author: Kalev Lember <kalevlember gmail com>
Date:   Wed May 7 17:20:23 2014 +0200

    app widget: Don't reserve space for buttons in the update viewing mode
    
    There are no buttons in that mode and we can put the recovered screen
    estate to better use.

 src/gs-app-widget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app-widget.c b/src/gs-app-widget.c
index dd19f9a..c97be66 100644
--- a/src/gs-app-widget.c
+++ b/src/gs-app-widget.c
@@ -249,6 +249,8 @@ gs_app_widget_refresh (GsAppWidget *app_widget)
                break;
        }
 
+       gtk_widget_set_visible (priv->button_box, !priv->show_update);
+
        if (priv->selectable) {
                if (gs_app_get_id_kind (priv->app) == GS_APP_ID_KIND_DESKTOP ||
                    gs_app_get_id_kind (priv->app) == GS_APP_ID_KIND_WEBAPP)


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