Re: [gedit-list] Help in plugin developement



For example the bookmarks plugin defines these messages:
https://git.gnome.org/browse/gedit-plugins/tree/plugins/bookmarks/messages
and they are registered here:
https://git.gnome.org/browse/gedit-plugins/tree/plugins/bookmarks/gedit-bookmarks-plugin.c#n701
and the path here:
https://git.gnome.org/browse/gedit-plugins/tree/plugins/bookmarks/gedit-bookmarks-plugin.c#n48

Unfortunately you have to directly check the plugin to know which kind of messages it provides
and if it does not expose any you will have to add them.

Regards.


On Thu, Jun 13, 2013 at 9:09 AM, Aravindhan.K <aravindlinux01 gmail com> wrote:
In commander plugin bookmark.py line 18
>>>window.get_message_bus().send('/plugins/bookmarks', 'toggle', view=view)
how to identify object path'/plugins/bookmarks' and method name 'toggle'.?
I tried like this one in gedit python console
window.get_message_bus().is_registered('/plugins/externaltools','run_external_tool')
    FALSE
window.get_message_bus().is_registered('/plugins/externaltools','toggle')
    FALSE
please.help me to understand it.
On Thursday 13 June 2013 11:40 AM, Ignacio Casal Quinteiro wrote:
Hey,

for that you have the message bus api which should allow you to make inter plugin communications.
Check the commander plugin for an example on this.

Regards.


On Thu, Jun 13, 2013 at 6:30 AM, Aravindhan.K <aravindlinux01 gmail com> wrote:
    I am trying to develop simple plugins in python.
Is it possible to call another plug-in, from my own plugin.
For example, show white space to be toggled from my plugin.
    I dont wish to have this solution,by calling gtksourceview api.
but   to call the plugin.
_______________________________________________
gedit-list mailing list
gedit-list gnome org
https://mail.gnome.org/mailman/listinfo/gedit-list



--
Ignacio Casal Quinteiro


_______________________________________________
gedit-list mailing list
gedit-list gnome org
https://mail.gnome.org/mailman/listinfo/gedit-list




--
Ignacio Casal Quinteiro


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