Re: [gedit-list] Possible bug with configure dialog in plugins?



Hey,

Yeah, now you need to implement PeasGtk.Configurable. See:
http://git.gnome.org/browse/gedit/tree/plugins/pythonconsole/pythonconsole/__init__.py#n34

Regards.

PS: I know we need to update the tutorial for this.

On Sat, May 7, 2011 at 3:49 PM, Micah Carrick <micah greentackle com> wrote:
I was going to submit a bug but I figured I would check here first.

I'm running Gedit 3.0.2 and the configure dialog doesn't seem to work for Python plugins. Neither is_configurable() nor create_configure_dialog() are being called. Here is a test:

from gi.repository import GObject, Gedit

class ConfigurePlugin(GObject.Object, Gedit.WindowActivatable):
� � __gtype_name__ = "ConfigurePlugin"
� � window = GObject.property(type=Gedit.Window)

� � def __init__(self):
� � � � GObject.Object.__init__(self)
� ��
� � def create_configure_dialog(self):
� � � � print "create_configure_dialog"
� � � � return None
� � � ��
� � def is_configurable(self):
� � � � print "is_configurable"
� � � � return False
� � � ��
� � def do_activate(self):
� � � � pass

� � def do_deactivate(self):
� � � � pass

� � def do_update_state(self):
� � � � pass



_______________________________________________
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]