More policy/plugin editor work
Changed the look of the plugin editor. As I mentioned before it’s back to GtkSourceView again. Right now all it can do is open plugins. You can’t save them yet. I also checked in some more work on the policy editor that allows it to load and save policies.
So close and yet so far…
Traded some email with Paolo Maggi (author/maintainer GEdit) about using the Gedit control. Sadly it was only meant to be used as a Nautilus viewer. That’s too bad. In any event, I’ve changed the code to use GtkSourceView and checked it into CVS. I also updated the online help manual to reflect the various UI [...]
Embedding Gedit
So how does one embed a Gedit control into an application? GtkWidget *gedit_control; gedit_control = bonobo_widget_new_control “OAFIID:GNOME_Gedit_Control”, CORBA_OBJECT_NIL); gtk_widget_show (gedit_control); gtk_container_add (GTK_CONTAINER(vbox), gedit_control); That was easier than I thought it was going to be. However I can’t edit text in it yet as I’m not sure how to manipulate the object. Here is a screenshot.
Plugin Editor
Just checked in the start of the Bonobo-ized plugin editor. It just pops open the window doesn’t do much yet. I need to figure out how to embed the GEdit Bonobo control into it so it can do proper editing functions. There are also some UI changes that will need to be made in order [...]