Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shortcontentitem.py
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2013-01-01 19:10:09 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2013-01-01 19:10:09 (GMT)
commit1265546eda5b8ba30a5e430c50ad08f15b31c692 (patch)
tree74c0490e348c352f70d17cd2f1436c1715cb77e0 /shortcontentitem.py
parentd0a2a5ed99725f7ae9eb429467952e09b92b091e (diff)
Use own stock
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'shortcontentitem.py')
-rw-r--r--shortcontentitem.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/shortcontentitem.py b/shortcontentitem.py
index 7b4a5f4..1c757c7 100644
--- a/shortcontentitem.py
+++ b/shortcontentitem.py
@@ -1,7 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2012 S. Daniel Francis <francis@sugarlabs.org>
+# Copyright (C) 2012-2013 S. Daniel Francis <francis@sugarlabs.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -25,6 +22,7 @@ import gobject
import gtk
from item import Item
+import stock
class ShortContentItem(Item):
@@ -45,7 +43,7 @@ class ShortContentItem(Item):
if self.tooltip:
title = self.tooltip
else:
- title = gtk.stock_lookup(self.stock_id)[1].replace('_', '')
+ title = stock.get_label(self.stock_id)
window = gtk.Dialog(title, self.parent)
window.set_modal(False)
window.set_decorated(True)