[gedit-list] activate plugin after gedit initialised



Hello,

I'm currently creating a plugin for gedit.

To make my life far less painless I've decided that it is necessary to
activate my plugin only after I can determine what the active view is.

So I'm wondering how I would go about determining when this occurs?

For example, in my activate function do something like

def activate(self, window):
    window.connect("ready", self.actuallyActivate)

def actuallyActivate(self, window):
    blablablabla

Thankyou

Regards
Stephen


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]