[gedit-list] gedit.commands.load_uris does not emit loaded?



Hello,

I have a small plugin called Autotab[1] that automatically adjusts
indentation settings based on how the source file looks like, so that
programmers can edit files from different projects with the native
settings without having to manually adjust anything.

I've noticed that the plugin does not work when the session save
plugin has restored a session. As far as I can determine, the session
plugin uses gedit.commands.load_uris to restore a session.

My plugin connects to "loaded" (and "saved") like so:

    doc.connect_after("loaded", self.auto_tab, view)

And this does not seem to fire when a session is restored. From a
quick look at the sources of gedit, I also see no call to any
callback, but I'm not familiar with the code base and only barely
literate in C. :)

I'm wondering if a) there is some other signal I could listen to, or
b) if gedit should in fact emit "loaded" for documents loaded this
way?

Thanks!

/ Kristoffer

1. http://code.google.com/p/gedit-autotab/


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