fixed help service
git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/trunk@1374 a8418922-720d-0410-834f-a69b97ada669
This commit is contained in:
parent
c8f58e6494
commit
0416fb60ae
@ -40,8 +40,8 @@ class HelpService(object):
|
||||
|
||||
@action(name='help-about', stock_id='gtk-about')
|
||||
def about(self):
|
||||
data_dir = os.path.join(pkg_resources.get_distribution('gaphor').location, 'gaphor', 'data')
|
||||
logo = gtk.gdk.pixbuf_new_from_file(os.path.join(data_dir, 'pixmaps', 'logo.png'))
|
||||
logo_file = os.path.join(pkg_resources.get_distribution('gaphor').location, 'gaphor', 'ui', 'pixmaps', 'logo.png')
|
||||
logo = gtk.gdk.pixbuf_new_from_file(logo_file)
|
||||
version = Application.distribution.version
|
||||
about = gtk.Dialog("About Gaphor", self.gui_manager.main_window.window, gtk.DIALOG_MODAL, (gtk.STOCK_OK, gtk.RESPONSE_OK))
|
||||
about.set_default_response(gtk.RESPONSE_OK)
|
||||
|
2
setup.py
2
setup.py
@ -125,7 +125,6 @@ setup(
|
||||
'diagram_export_manager = gaphor.services.diagramexportmanager:DiagramExportManager',
|
||||
'action_manager = gaphor.services.actionmanager:ActionManager',
|
||||
'gui_manager = gaphor.services.guimanager:GUIManager',
|
||||
'help = gaphor.services.helpservice:HelpService',
|
||||
'copy = gaphor.services.copyservice:CopyService',
|
||||
'xmi_export = gaphor.plugins.xmiexport:XMIExport',
|
||||
'diagram_layout = gaphor.plugins.diagramlayout:DiagramLayout',
|
||||
@ -133,6 +132,7 @@ setup(
|
||||
'check_metamodel = gaphor.plugins.checkmetamodel:CheckModelWindow',
|
||||
'live_object_browser = gaphor.plugins.liveobjectbrowser:LiveObjectBrowser',
|
||||
'alignment = gaphor.plugins.alignment:Alignment',
|
||||
'help = gaphor.services.helpservice:HelpService',
|
||||
],
|
||||
'gaphor.uicomponents': [
|
||||
'mainwindow = gaphor.ui.mainwindow:MainWindow',
|
||||
|
Loading…
x
Reference in New Issue
Block a user