Re: Reverse-wrapping gtkmm widgets to gtk+ (for glade3)



On Mon, 2006-11-20 at 15:04 +0100, Alexander Brinkman wrote:
> On Sun, 2006-11-19 at 23:42 +0100, Alexander Brinkman wrote:
> > > I added a call to Glib::wrap_register() to fix this, and now it seems to
> > > work - see the attachment. This is analogous to what happens when you
> > > use an extra wrapper library. For instance, I am using gtksourceviewmm
> > > (which extends GtkTextView) in Glom with libglade in the same way, and
> > > the init() function of gtksourceviewmm does this for us.
> > > 
> > > I'll have to think about how this might be done automatically when using
> > > a custom GType, but I don't think it's too inconvenient now. If it works
> > > without problems then we should add a section the gtkmm book about it.
> 
> Ok, for a libglade point of view it seems to be working now. From a
> Glade3 point of view, unfortunatly, not. My custom widgets are not
> instantiated by Glade.

I have never tried to implement a Glade extension. I guess this is what
you are doing. Maybe I could take a look at it.

> Should it be possible, after initialisation, to do a
> g_object_new( custom_widget_gtype, NULL ) call and get a Gtkmm custom
> widget? Because that does not seem to be working right now...

Yes, and that's what libglade is doing, I think.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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