Re: Implementation of gtk_xxx_get_type



On Wed, 25 Jul 2018 at 12:44, Göran Hasse <gorhas raditex nu> wrote:
Hello!

I try to write my own widget. For this a study gtkswitch.c/.h 
( http://ftp.gnome.org/pub/gnome/sources/gtk+/3.22/gtk+-3.22.30.tar.xz )

There is a function gtk_switch_get_type - but there is no
implementation?

See G_DEFINE_TYPE:

  https://developer.gnome.org/gobject/stable/gobject-Type-Information.html#G-DEFINE-TYPE:CAPS

and the GObject tutorial:

  https://developer.gnome.org/gobject/stable/howto-gobject-code.html

Ciao,
 Emmanuele.

--


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