[gnome-software] Disable app folders feature when run outside GNOME



commit 7b9d699f60a93fd9b250b844d6105bb90c147b61
Author: Jeremy Bicha <jbicha linux com>
Date:   Sun Jun 12 18:18:41 2016 -0400

    Disable app folders feature when run outside GNOME
    
    Other desktops don't support GNOME's app folders
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767378
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 src/gs-shell-installed.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index 04106f2..ee0bf33 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -259,7 +259,12 @@ static void
 gs_shell_update_button_select_visibility (GsShellInstalled *self)
 {
        gboolean show_button_select;
-       show_button_select = g_settings_get_boolean (self->settings, "show-folder-management");
+       if (gs_utils_is_current_desktop ("GNOME")) {
+               show_button_select = g_settings_get_boolean (self->settings,
+                                                            "show-folder-management");
+       } else {
+               show_button_select = FALSE;
+       }
        gtk_widget_set_visible (self->button_select, show_button_select);
 }
 


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