Re: Gobject and c++ types.
- From: Murray Cumming <murrayc murrayc com>
- To: Germán Diago <germandiago gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Gobject and c++ types.
- Date: Thu, 05 Nov 2009 15:42:07 +0100
On Thu, 2009-11-05 at 15:31 +0100, Germán Diago wrote:
> >> GLIB_REGISTER_CLASS(MyClass, glib::object);
> >
> > class MyClass : Glib::Object
> > {
> > };
> >
> > MyClass::MyClass
> > : Glib::ObjectBase("myclassname")
> > {
> > }
> >
> > will also register a derived GType.
>
> But can you register signals?
No.
> And properties?
Yes, just by adding a member propertyproxy, I think.
> I think properties can
> be registered but not signals.
> What I want to try is a way to expose c++ signals into GObject type
> system, so that they can be
> seen in glade.
OK. Good luck. That's difficult.
> Anyway, the problem is that until you don't create an instance of
> MyClass, you don't have
> the GType available. Correct me if I'm wrong.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]