Embedding Gedit

Posted by lorenb on 1/14/2004 in projects |

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.png

Copyright © 2004-2010 LB Technology Services Blog All rights reserved.
Desk Mess Mirrored v1.7 theme from BuyNowShop.com.