Re: [gedit-list] Possible bug with configure dialog in plugins?
- From: Nacho <nacho resa gmail com>
- To: Micah Carrick <micah greentackle com>
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] Possible bug with configure dialog in plugins?
- Date: Sat, 7 May 2011 16:40:05 +0200
with builder you can set which one is the root, so just take the main box and you return this.
On Sat, May 7, 2011 at 4:22 PM, Micah Carrick <micah greentackle com>
One other note, and this may be more of a Peas or Glade thing, but...
Since we now return a widget instead of a dialog, it is a little more difficult to use Glade to build the configure dialog. Peas does not like a widget with a parent and Glade doesn't like a widget without a parent. I have to manually go into the glade interface file and remove the top level window so that Gtk.Builder does not build a parent for the configure widget.
But, it's now working. Thanks!
On Sat, May 7, 2011 at 6:59 AM, Nacho <nacho resa gmail com>
Yeah, now you need to implement PeasGtk.Configurable. See:
PS: I know we need to update the tutorial for this.
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)
gedit-list mailing list
gedit-list gnome org
-- Green Tackle
- Environmentally Friendly Fishing Tackle www.GreenTackle.com
Email: micah greentackle com
Toll Free: 877.580.9165
] [Thread Prev