[gnome-packagekit/glib2: 59/79] Add a new GConf key to control whether we show all packages in the apdd/remove UI



commit fa30ac2eecb7eff02ece38c02f78aff0cc808ab8
Author: Richard Hughes <richard hughsie com>
Date:   Sat Oct 3 16:07:41 2009 +0100

    Add a new GConf key to control whether we show all packages in the apdd/remove UI
    
    It's off by default as it takes many minutes on most backends.

 data/gnome-packagekit.schemas.in |   12 ++++++++++++
 src/gpk-common.h                 |    1 +
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-packagekit.schemas.in b/data/gnome-packagekit.schemas.in
index 67180da..6f418fa 100644
--- a/data/gnome-packagekit.schemas.in
+++ b/data/gnome-packagekit.schemas.in
@@ -416,6 +416,18 @@
     </schema>
 
     <schema>
+      <key>/schemas/apps/gnome-packagekit/application/show_all_packages</key>
+      <applyto>/apps/gnome-packagekit/application/show_all_packages</applyto>
+      <owner>gnome-packagekit</owner>
+      <type>bool</type>
+      <default>false</default>
+      <locale name="C">
+        <short>Show the 'All Packages' group menu</short>
+        <long>Show the all packages menu item. This takes a long time to populate on most backends and is not generally required by end users</long>
+      </locale>
+    </schema>
+
+    <schema>
       <key>/schemas/apps/gnome-packagekit/application/search_mode</key>
       <applyto>/apps/gnome-packagekit/application/search_mode</applyto>
       <owner>gnome-packagekit</owner>
diff --git a/src/gpk-common.h b/src/gpk-common.h
index 987b2b8..e6a6305 100644
--- a/src/gpk-common.h
+++ b/src/gpk-common.h
@@ -72,6 +72,7 @@ G_BEGIN_DECLS
 #define GPK_CONF_APPLICATION_FILTER_ARCH	"/apps/gnome-packagekit/application/filter_arch"
 #define GPK_CONF_APPLICATION_CATEGORY_GROUPS	"/apps/gnome-packagekit/application/category_groups"
 #define GPK_CONF_APPLICATION_SEARCH_MODE	"/apps/gnome-packagekit/application/search_mode"
+#define GPK_CONF_APPLICATION_SHOW_ALL_PACKAGES	"/apps/gnome-packagekit/application/show_all_packages"
 #define GPK_CONF_UPDATE_VIEWER_MOBILE_BBAND	"/apps/gnome-packagekit/update-viewer/notify_mobile_connection"
 #define GPK_CONF_UPDATE_VIEWER_ONLY_NEWEST	"/apps/gnome-packagekit/update-viewer/only_newest"
 #define GPK_CONF_UPDATE_VIEWER_SCROLL_ACTIVE	"/apps/gnome-packagekit/update-viewer/scroll_active"



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