Re: Example of writing gtk3 widgets

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

 



Maybe have a look at the widgets I have adapted here:
http://sourceforge.net/p/lives/code/1810/tree/trunk/src/giw/
giwknob, giwvscale and giwled. They will work with both gtk+ 2 and
gtk+ 3. If you look at the #if GTK_CHECK_VERSION lines it will give
you an idea of exactly what needs to be changed. The biggest change is
using cairo for drawing, but there are some smaller changes like
GtkObject becomes GObject, etc. It took me a while and a lot of trial
and error, so it may save you some time.


giwtimeline is only for gtk3, so it represents a somewhat cleanish
implementation.

Some of the support functions are found in
http://sourceforge.net/p/lives/code/1810/tree/trunk/src/widget-helper.c
I can't guarantee that any of this adheres to the official coding standards.


Hope this helps !

Regards,
Salsaman.


http://lives.sourceforge.net
https://www.ohloh.net/accounts/salsaman


On Tue, Mar 19, 2013 at 3:57 PM, Göran Hasse <gorhas@xxxxxxxxxx> wrote:
> Hello,
>
> I have written several specialiced gtk widgets for gtk2. Now it is
> time to move them to gtk3.
>
> Is there any "How to write your gtk3 widgets" someware. I noticed it
> was quite many changes at this level of programming.
>
> /gh
>
> --
> ---
> Göran Hasse
> Raditex AB
> Boo 229, 715 91 ODENSBACKEN
> Mobile: 070-5530148
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux