[gnome-software] Protect the folders functionality with an envvar
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Protect the folders functionality with an envvar
- Date: Fri, 15 Nov 2013 03:39:12 +0000 (UTC)
commit 63d2ccaf96af5894f4ba60e801f2f9cbd3485863
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 14 22:34:51 2013 -0500
Protect the folders functionality with an envvar
Until gnome-shell gets switched to use a setting like
we do here, the folders functionality is not really useful,
so don't expose it in the UI unless the TEST_FOLDERS
environment variable is set.
src/gs-shell-installed.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index c4f1fae..bdc3ee4 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -315,8 +315,10 @@ gs_shell_installed_refresh (GsShellInstalled *shell_installed, gboolean scroll_u
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "buttonbox_main"));
gtk_widget_show (widget);
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_select"));
- gtk_widget_show (widget);
+ if (g_getenv ("TEST_FOLDERS")) {
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_select"));
+ gtk_widget_show (widget);
+ }
}
gtk_list_box_invalidate_sort (priv->list_box_installed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]