Re: [gedit-list] get_tab_from_uri



September wrote:
Hello again,

The C api for geditWindow
(http://september.jicksta.com/gedit-2.15.3-docs/reference/html/GeditWindow.html)
shows a function called get_tab_from_uri, which returns a pointer to a
Tab object associated with a given uri, if it exists. However,
dir(gedit.Window) shows that no such function exists in the python
module. Is this because there is another simple way of accomplishing
the same thing? What I need to do is switch the active tab to one
matching acertain uri, and the above-named function seems like the
simplest way to do it, but...

The function has been added only recently (in fact it's only in 2.15, not in 2.14) and has not been bound yet to python, binding it should be pretty easy. Otherwise in the mean time (or if you want to keep compatibility with 2.14) you can get the list of all the docs and check each uri, which is what the function itself does.

Also: I've updated some of the documentation on
live.gnome.org/PythonPluginHowTo. There's now a (brief, incomplete)
section on signal handling.

Great, that's appreaciated!


Paolo
Arjun
_______________________________________________
gedit-list mailing list
gedit-list gnome org
http://mail.gnome.org/mailman/listinfo/gedit-list





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