Skip to content
Browse files

gui.gtkui: Make it possible to show installed plugins/themes before d…

…ownloading all metadata
  • Loading branch information...
1 parent 4f37cb4 commit e09f5bcba6e34c5ba6c767e2fdc1d16b854f8bab @Sbte Sbte committed Jun 10, 2012
Showing with 11 additions and 6 deletions.
  1. +9 −4 emesene/gui/gtkui/ExtensionList.py
  2. +2 −2 emesene/gui/gtkui/PluginWindow.py
View
13 emesene/gui/gtkui/ExtensionList.py
@@ -283,6 +283,8 @@ def on_update(self, widget=None, refresh=False):
if self.progress:
return
+ self.show_update(True)
+
self.progress = True
self.set_action(self.default_action)
self.progressbox.show_all()
@@ -488,8 +490,11 @@ def check_version(self, type_, name):
return True
- def show_update(self):
+ def show_update(self, installed_only=False):
'''show an update list of the set collection'''
+ if installed_only:
+ return
+
self.download_list = {}
for box in self.boxes:
@@ -537,7 +542,7 @@ def on_toggled(self, widget, path, model, type_):
def set_theme(self, property_name, value):
self.set_attr(property_name, value)
- def show_update(self):
+ def show_update(self, installed_only=False):
'''called when the liststore need to be changed'''
self.removable_list = {}
@@ -556,7 +561,7 @@ def show_update(self):
if path.startswith(self.config_dir.base_dir) and not is_current:
self.removable_list[box.extension_type][name] = path
box.append(is_current, label, name, path=path)
- DownloadList.show_update(self)
+ DownloadList.show_update(self, installed_only)
def strip_name(self, name, type_):
'''return a stripped version of theme name.'''
@@ -695,7 +700,7 @@ def check_updates(self, collection, type_, path, instance=None):
return False
- def show_update(self):
+ def show_update(self, installed_only=False):
'''called when the liststore need to be changed'''
self.clear_all()
self.update_amount = 0
View
4 emesene/gui/gtkui/PluginWindow.py
@@ -37,7 +37,7 @@ def __init__(self, session, init_path):
self.buttonbox.pack_start(self.config_button, fill=False)
self.on_cursor_changed(self.list_view)
- def show_update(self):
+ def show_update(self, installed_only=False):
'''called when the liststore need to be changed'''
self.removable_list = {}
self.removable_list['plugin'] = {}
@@ -54,7 +54,7 @@ def show_update(self):
self.removable_list['plugin'][name] = path
self.append(is_active, name, name, path=path,
description=pluginmanager.plugin_description(name))
- DownloadList.show_update(self)
+ DownloadList.show_update(self, installed_only)
def on_toggled(self, widget, path, model, type_):
'''called when the toggle button in list view is pressed'''

0 comments on commit e09f5bc

Please sign in to comment.
Something went wrong with that request. Please try again.