[gnome-software] Do not show 'Installed' on the app tile when actually installing



commit 64cd2297a2ed97569bd32ea69f408c57cb647d29
Author: Richard Hughes <richard hughsie com>
Date:   Wed Apr 9 12:03:04 2014 +0100

    Do not show 'Installed' on the app tile when actually installing
    
    Also, not a new string so no need to worry.
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=727573

 src/gs-app-tile.c |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-app-tile.c b/src/gs-app-tile.c
index ea81998..a52afe5 100644
--- a/src/gs-app-tile.c
+++ b/src/gs-app-tile.c
@@ -72,10 +72,8 @@ app_state_changed (GsApp *app, GParamSpec *pspec, GsAppTile *tile)
         accessible = gtk_widget_get_accessible (priv->button);
 
        label = gtk_bin_get_child (GTK_BIN (priv->eventbox));
-        switch (gs_app_get_state (app)) {
-        case GS_APP_STATE_INSTALLED:
-        case GS_APP_STATE_INSTALLING:
-        case GS_APP_STATE_REMOVING:
+       switch (gs_app_get_state (app)) {
+       case GS_APP_STATE_INSTALLED:
                installed = TRUE;
                name = g_strdup_printf ("%s (%s)",
                                        gs_app_get_name (app),
@@ -84,6 +82,24 @@ app_state_changed (GsApp *app, GParamSpec *pspec, GsAppTile *tile)
                 * that tells the user the application is installed */
                gtk_label_set_label (GTK_LABEL (label), _("Installed"));
                break;
+       case GS_APP_STATE_INSTALLING:
+               installed = TRUE;
+               name = g_strdup_printf ("%s (%s)",
+                                       gs_app_get_name (app),
+                                       _("Installing"));
+               /* TRANSLATORS: this is the small blue label on the tile
+                * that tells the user the application is being installing */
+               gtk_label_set_label (GTK_LABEL (label), _("Installing"));
+               break;
+       case GS_APP_STATE_REMOVING:
+               installed = TRUE;
+               name = g_strdup_printf ("%s (%s)",
+                                       gs_app_get_name (app),
+                                       _("Removing"));
+               /* TRANSLATORS: this is the small blue label on the tile
+                * that tells the user the application is being removed */
+               gtk_label_set_label (GTK_LABEL (label), _("Removing"));
+               break;
        case GS_APP_STATE_UPDATABLE:
                installed = TRUE;
                name = g_strdup_printf ("%s (%s)",


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