/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2007-07-23 12:03:29 UTC
  • Revision ID: jelmer@samba.org-20070723120329-jh92obhhs519edga
Use application path to find icons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    bzrlib.ui.ui_factory = GtkUIFactory()
104
104
 
105
105
 
 
106
def data_path():
 
107
    return os.path.dirname(__file__)
 
108
 
 
109
 
106
110
class GTKCommand(Command):
107
111
    """Abstract class providing GTK specific run commands."""
108
112
 
489
493
        from notify import NotifyPopupMenu
490
494
        gtk = self.open_display()
491
495
        menu = NotifyPopupMenu()
492
 
        icon = gtk.status_icon_new_from_file("bzr-icon-64.png")
 
496
        icon = gtk.status_icon_new_from_file(os.path.join(data_path(), "bzr-icon-64.png"))
493
497
        icon.connect('popup-menu', menu.display)
494
498
 
495
499
        import cgi