[kupfer] contrib: Update icon_names to work with core changes
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] contrib: Update icon_names to work with core changes
- Date: Sat, 6 Feb 2010 13:42:34 +0000 (UTC)
commit 4b77cdbc07893052ca2087eff10a680b1f60bec9
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed Feb 3 17:05:22 2010 +0100
contrib: Update icon_names to work with core changes
contrib/icon_names.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/contrib/icon_names.py b/contrib/icon_names.py
index e55ac20..bd8771d 100644
--- a/contrib/icon_names.py
+++ b/contrib/icon_names.py
@@ -13,10 +13,6 @@ __description__ = _("Browse the icons of the Icon Naming Specification")
__version__ = ""
__author__ = "Ulrik Sverdrup <ulrik sverdrup gmail com>"
-__kupfer_settings__ = plugin_support.PluginSettings(
- plugin_support.SETTING_PREFER_CATALOG,
-)
-
import urllib
from xml.etree import cElementTree as ET
@@ -27,6 +23,10 @@ from kupfer.objects import Leaf, Action, Source, SourceLeaf
from kupfer import uiutils
from kupfer import plugin_support
+__kupfer_settings__ = plugin_support.PluginSettings(
+ plugin_support.SETTING_PREFER_CATALOG,
+)
+
ICON_SPEC_ADDRESS = "http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-0.8.90.xml"
@@ -41,7 +41,7 @@ class IconName (Leaf):
Leaf.__init__(self, obj, obj)
self.description = desc
if desc:
- self.name_aliases.add(desc.splitlines()[0])
+ self.kupfer_add_alias(desc.splitlines()[0])
def get_actions(self):
yield ShowDescription()
def get_description(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]