~ubuntu-branches/debian/sid/autokey/sid

« back to all changes in this revision

Viewing changes to src/lib/gtkui/notifier.py

  • Committer: Bazaar Package Importer
  • Author(s): Luke Faraone
  • Date: 2010-04-05 08:38:03 UTC
  • mfrom: (8.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100405083803-213ntib1b3208oq0
Fix dependency substitution for Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# along with this program; if not, write to the Free Software
17
17
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
18
 
19
 
import pynotify, gobject, gtk
 
19
import pynotify, gobject, gtk, gettext
20
20
import popupmenu, abbrselector
21
21
from autokey.configmanager import *
22
22
from autokey import common
23
23
 
24
 
TOOLTIP_RUNNING = "AutoKey - running"
25
 
TOOLTIP_PAUSED = "AutoKey - paused"
26
 
 
27
 
STATUS_ICON_FILE = "/usr/share/pixmaps/akicon-status.png"
 
24
gettext.install("autokey")
 
25
 
 
26
TOOLTIP_RUNNING = _("AutoKey - running")
 
27
TOOLTIP_PAUSED = _("AutoKey - paused")
 
28
 
 
29
STATUS_ICON_FILE = "/usr/share/pixmaps/akicon.png"
28
30
 
29
31
def gthreaded(f):
30
32
    
82
84
        
83
85
    def on_popup_menu(self, status_icon, button, activate_time, data=None):
84
86
        # Main Menu items
85
 
        enableMenuItem = gtk.CheckMenuItem("Enable Expansions")
 
87
        enableMenuItem = gtk.CheckMenuItem(_("Enable Expansions"))
86
88
        enableMenuItem.set_active(self.app.service.is_running())
87
89
        enableMenuItem.set_sensitive(not self.app.serviceDisabled)
88
90
        
89
 
        configureMenuItem = gtk.ImageMenuItem("Configure")
 
91
        configureMenuItem = gtk.ImageMenuItem(_("Configure"))
90
92
        configureMenuItem.set_image(gtk.image_new_from_stock(gtk.STOCK_PREFERENCES, gtk.ICON_SIZE_MENU))
91
93
        
92
 
        removeMenuItem = gtk.ImageMenuItem("Remove icon")
 
94
        removeMenuItem = gtk.ImageMenuItem(_("Remove icon"))
93
95
        removeMenuItem.set_image(gtk.image_new_from_stock(gtk.STOCK_CLOSE, gtk.ICON_SIZE_MENU))
94
96
        
95
97
        quitMenuItem = gtk.ImageMenuItem(gtk.STOCK_QUIT)
146
148
        if ConfigManager.SETTINGS[SHOW_TRAY_ICON]:
147
149
            n.attach_to_status_icon(self.icon)
148
150
        if details != '':
149
 
            n.add_action("details", "Details", self.__notifyClicked, details)
 
151
            n.add_action("details", _("Details"), self.__notifyClicked, details)
150
152
        self.__n = n
151
153
        self.__details = details
152
154
        n.show()