[gnome-software/gnome-3-22] details: Hide screenshot placeholder for input methods and langpacks



commit bcaf2093a0a56dcc4970558b10b69b4235070472
Author: Kalev Lember <klember redhat com>
Date:   Sun Nov 27 15:04:47 2016 +0100

    details: Hide screenshot placeholder for input methods and langpacks
    
    These never have screenshots so it doesn't make sense to show a
    placeholder either.

 src/gs-shell-details.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index f307b9c..973b7c5 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -569,6 +569,8 @@ gs_shell_details_refresh_screenshots (GsShellDetails *self)
        case AS_APP_KIND_SOURCE:
        case AS_APP_KIND_FIRMWARE:
        case AS_APP_KIND_DRIVER:
+       case AS_APP_KIND_INPUT_METHOD:
+       case AS_APP_KIND_LOCALIZATION:
                gtk_widget_set_visible (self->box_details_screenshot_fallback, FALSE);
                break;
        default:


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