Implementation of gtk_xxx_get_type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Implementation of gtk_xxx_get_type

Göran Hasse
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?

/gh

--
Göran Hasse
Raditex Control AB
Boo 229
715 91 ODENSBACKEN
http://www.rscada.se
OrgNr: 556611-8773
email: [hidden email]
tel: 019-450105
mob: 070-5530148
Lat:  59.18805083 Long: 15.50300449
URL: http://alturl.com/3e6hf
_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|

Re: Implementation of gtk_xxx_get_type

Gtk+ - General mailing list
On Wed, 25 Jul 2018 at 12:44, Göran Hasse <[hidden email]> 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:


and the GObject tutorial:


Ciao,
 Emmanuele.

--

_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list