[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    Re: Implementation of gtk_xxx_get_type
From:       Emmanuele Bassi via gtk-list <gtk-list () gnome ! org>
Date:       2018-07-25 12:14:10
Message-ID: CALnHYQHY-HDz6TaWiouoDxbxgOPntiXfOeKdpKU4ApEvw72bYw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]

[Attachment #5 (text/html)]

<div dir="ltr">On Wed, 25 Jul 2018 at 12:44, Göran Hasse &lt;<a \
href="mailto:gorhas@raditex.nu">gorhas@raditex.nu</a>&gt; wrote:<br><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br> <br>
I try to write my own widget. For this a study gtkswitch.c/.h   <br>
( <a href="http://ftp.gnome.org/pub/gnome/sources/gtk+/3.22/gtk+-3.22.30.tar.xz" \
rel="noreferrer" target="_blank">http://ftp.gnome.org/pub/gnome/sources/gtk+/3.22/gtk+-3.22.30.tar.xz</a> \
)<br> <br>
There is a function gtk_switch_get_type - but there is no<br>
implementation?<br clear="all"></blockquote><div><br></div><div>See \
G_DEFINE_TYPE:</div><div><br></div><div>   <a \
href="https://developer.gnome.org/gobject/stable/gobject-Type-Information.html#G-DEFIN \
E-TYPE:CAPS">https://developer.gnome.org/gobject/stable/gobject-Type-Information.html#G-DEFINE-TYPE:CAPS</a></div><div><br></div><div>and \
the GObject tutorial:</div><div><br></div><div>   <a \
href="https://developer.gnome.org/gobject/stable/howto-gobject-code.html">https://deve \
loper.gnome.org/gobject/stable/howto-gobject-code.html</a></div><div><br></div><div>Ciao,</div><div> \
Emmanuele.<br></div></div><br>-- <br><div dir="ltr" class="gmail_signature"><a \
href="https://www.bassi.io" target="_blank">https://www.bassi.io</a><br>[@] ebassi \
[@<a href="http://gmail.com" target="_blank">gmail.com</a>]</div></div>



_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic