From 335fc7a0d0fbfcab0f8dd262b1c54f24cf619951 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 20 Jun 2008 16:14:32 +0100 Subject: [PATCH] Added "Show Cache" button to "0desktop --manage" window. --- zeroinstall/gtkui/applistbox.py | 8 ++++- zeroinstall/gtkui/desktop.glade | 76 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+), 1 deletion(-) diff --git a/zeroinstall/gtkui/applistbox.py b/zeroinstall/gtkui/applistbox.py index 29c0a96..27dd074 100644 --- a/zeroinstall/gtkui/applistbox.py +++ b/zeroinstall/gtkui/applistbox.py @@ -107,8 +107,14 @@ class AppListBox: self.model.set_sort_column_id(AppListBox.NAME, gtk.SORT_ASCENDING) + show_cache = widgets.get_widget('show_cache') + self.window.action_area.set_child_secondary(show_cache, True) + def response(box, resp): - box.destroy() + if resp == 0: + subprocess.Popen(['0store', 'manage']) + else: + box.destroy() self.window.connect('response', response) def populate_model(self): diff --git a/zeroinstall/gtkui/desktop.glade b/zeroinstall/gtkui/desktop.glade index 0d2f678..44d5111 100644 --- a/zeroinstall/gtkui/desktop.glade +++ b/zeroinstall/gtkui/desktop.glade @@ -640,6 +640,82 @@ Utility -7 + + + + True + Show all Zero Install software currently stored on this computer (i.e. those programs which can be run without a network connection). This can be useful if you're running out of disk space and need to delete something. + True + True + GTK_RELIEF_NORMAL + True + 0 + + + + True + 0.5 + 0.5 + 0 + 0 + 0 + 0 + 0 + 0 + + + + True + False + 2 + + + + True + gtk-properties + 4 + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + Show Cache + True + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + + + 0 -- 2.11.4.GIT