summaryrefslogtreecommitdiff
path: root/portato/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/windows')
-rw-r--r--portato/gui/windows/main.py9
-rw-r--r--portato/gui/windows/update.py7
2 files changed, 15 insertions, 1 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 1b67747..c99790c 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -50,7 +50,7 @@ from .about import AboutWindow
from .plugin import PluginWindow
from .preference import PreferenceWindow
from .search import SearchWindow
-from .update import UpdateWindow
+from .update import UpdateWindow, WorldListWindow
class PackageTable:
"""A window with data about a specfic package."""
@@ -1624,6 +1624,13 @@ class MainWindow (Window):
GtkThread(name="Show Updates Thread", target = __update).start()
return True
+ def cb_show_world_clicked (self, *args):
+ """
+ Show the list of world packages.
+ """
+ WorldListWindow(self.window, system.find_packages(pkgSet = "world"), self.queue, self.jump_to)
+ return True
+
def cb_show_installed_toggled (self, *args):
"""
Toggle the "show only installed" option.
diff --git a/portato/gui/windows/update.py b/portato/gui/windows/update.py
index 8e32dd9..d77d257 100644
--- a/portato/gui/windows/update.py
+++ b/portato/gui/windows/update.py
@@ -115,3 +115,10 @@ class UpdateWindow (AbstractDialog):
store = self.view.get_model()
store[path][0] = not store[path][0]
return True
+
+class WorldListWindow (UpdateWindow):
+ __file__ = __window__ = "UpdateWindow"
+
+ def __init__ (self, *args, **kwargs):
+ UpdateWindow.__init__(self, *args, **kwargs)
+ self.window.set_title(_("World Packages"))