/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

Clarify license - it's GPLv2 /or later/

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
    return os.path.dirname(__file__)
110
110
 
111
111
 
 
112
def icon_path(*args):
 
113
    return os.path.join(data_path(), *args)
 
114
 
 
115
 
112
116
class GTKCommand(Command):
113
117
    """Abstract class providing GTK specific run commands."""
114
118
 
516
520
        from notify import NotifyPopupMenu
517
521
        gtk = self.open_display()
518
522
        menu = NotifyPopupMenu()
519
 
        icon = gtk.status_icon_new_from_file(os.path.join(data_path(), "bzr-icon-64.png"))
 
523
        icon = gtk.status_icon_new_from_file(icon_path("bzr-icon-64.png"))
520
524
        icon.connect('popup-menu', menu.display)
521
525
 
522
526
        import cgi