~ubuntu-tour/+junk/new-lang-system

« back to all changes in this revision

Viewing changes to softwarecentre.py

  • Committer: Anthony Stewart
  • Date: 2011-03-30 12:41:21 UTC
  • Revision ID: madnessred@gmail.com-20110330124121-i997qrqlauysm4c7
Breadcrumbs sort of do something now, started working out how to go about launchpad translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
                while children[n]._created != child._created:
100
100
                        n += 1
101
101
                self.items = self.current[0:n+1]
102
 
                print 'Signal emited from BreadCrumb'
103
 
                self.emit('activated',1,1)
104
 
                self.do_callback('activated', [1,1])
 
102
                
 
103
                self.do_callback('activated', self.items)
105
104
        
106
105
        #Create a callback
107
106
        def set_callback(self, action, function):
119
118
                if action in self.callbacks.keys():
120
119
                        #Call the function
121
120
                        self.callbacks[action](self, params)
122
 
                
123
 
                
124
 
gobject.signal_new("activated", BreadCrumb, gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, (gobject.TYPE_INT, gobject.TYPE_INT))