Changeset 1227
- Timestamp:
- 04/16/07 05:10:59 (2 years ago)
- Files:
-
- gaphor/trunk/gaphor/UML/element.py (modified) (1 diff)
- gaphor/trunk/gaphor/actions/mainactions.py (modified) (3 diffs)
- gaphor/trunk/gaphor/application.py (modified) (1 diff)
- gaphor/trunk/gaphor/core.py (modified) (1 diff)
- gaphor/trunk/gaphor/misc/console.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/trunk/gaphor/UML/element.py
r1121 r1227 126 126 127 127 def notify(self, name, cb_name=None, pspec=None): 128 """Send notification to attached callbacks that a property 128 """ 129 Send notification to attached callbacks that a property 129 130 has changed. 130 131 """ gaphor/trunk/gaphor/actions/mainactions.py
r1222 r1227 8 8 import gtk 9 9 import gc 10 from gaphor.core import inject 10 11 from gaphor.application import Application 11 12 from gaphor import resource … … 676 677 """ 677 678 679 gui_manager = inject('gui_manager') 680 678 681 def __init__(self, slot_id): 679 682 DynamicMenu.__init__(self, slot_id) … … 681 684 def get_menu(self): 682 685 recent_files = resource('recent-files', []) 683 window = Application.get_service('gui_manager').main_window686 window = self.gui_manager.main_window 684 687 file_list = [] 685 688 for f, i in zip(recent_files, xrange(len(recent_files))): gaphor/trunk/gaphor/application.py
r1221 r1227 58 58 for name, srv in services: 59 59 log.debug('initializing service.%s' % name) 60 component.provideUtility(srv, IService, name) 60 61 srv.init(self) 61 component.provideUtility(srv, IService, name)62 62 63 63 distribution = property(lambda s: pkg_resources.get_distribution('gaphor'), gaphor/trunk/gaphor/core.py
r1223 r1227 7 7 from gaphor.application import Application as _Application 8 8 #from gaphor.interfaces import IService 9 9 from gaphor.transaction import Transaction, transactional 10 10 11 11 class inject(object): gaphor/trunk/gaphor/misc/console.py
r1176 r1227 6 6 # license details. 7 7 # 8 import pygtk9 pygtk.require('2.0')8 #import pygtk 9 #pygtk.require('2.0') 10 10 import gtk 11 11 import gtk.gdk
