Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shortcontentitem.py
diff options
context:
space:
mode:
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)