Changeset 1227

Show
Ignore:
Timestamp:
04/16/07 05:10:59 (2 years ago)
Author:
arj..@yirdis.nl
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/UML/element.py

    r1121 r1227  
    126126 
    127127    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 
    129130        has changed. 
    130131        """ 
  • gaphor/trunk/gaphor/actions/mainactions.py

    r1222 r1227  
    88import gtk 
    99import gc 
     10from gaphor.core import inject 
    1011from gaphor.application import Application 
    1112from gaphor import resource 
     
    676677    """ 
    677678 
     679    gui_manager = inject('gui_manager') 
     680     
    678681    def __init__(self, slot_id): 
    679682        DynamicMenu.__init__(self, slot_id) 
     
    681684    def get_menu(self): 
    682685        recent_files = resource('recent-files', []) 
    683         window = Application.get_service('gui_manager').main_window 
     686        window = self.gui_manager.main_window 
    684687        file_list = [] 
    685688        for f, i in zip(recent_files, xrange(len(recent_files))): 
  • gaphor/trunk/gaphor/application.py

    r1221 r1227  
    5858        for name, srv in services: 
    5959            log.debug('initializing service.%s' % name) 
     60            component.provideUtility(srv, IService, name) 
    6061            srv.init(self) 
    61             component.provideUtility(srv, IService, name) 
    6262 
    6363    distribution = property(lambda s: pkg_resources.get_distribution('gaphor'), 
  • gaphor/trunk/gaphor/core.py

    r1223 r1227  
    77from gaphor.application import Application as _Application 
    88#from gaphor.interfaces import IService 
    9  
     9from gaphor.transaction import Transaction, transactional 
    1010 
    1111class inject(object): 
  • gaphor/trunk/gaphor/misc/console.py

    r1176 r1227  
    66#  license details. 
    77# 
    8 import pygtk 
    9 pygtk.require('2.0') 
     8#import pygtk 
     9#pygtk.require('2.0') 
    1010import gtk 
    1111import gtk.gdk