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

List:       gtk-app-devel
Subject:    Re: The dial's pointer looks like a sawtooth,how to render it ?
From:       "Samuel Cormier-Iijima" <sciyoshi () gmail ! com>
Date:       2006-08-29 19:08:25
Message-ID: 7bf82d160608291208l2d306bb6t6c7dd91f742041e () mail ! gmail ! com
[Download RAW message or body]

For a very good, up-to-date, and GObject-based widget written using
cairo, check out this tutorial:

http://gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28

Cheers,
Samuel

On 8/29/06, David Nečas (Yeti) <yeti@physics.muni.cz> wrote:
> On Tue, Aug 29, 2006 at 04:17:50PM +0800, chao yeaj wrote:
> >         In the Gtk+2.0 tutorial,there is a dial widget
>
> The GtkDial part of the tutorial is deprecated and should
> not be used when writing new widgets[*].  It is not GObject
> based at all, it uses functions like gtk_widget_draw() and
> IIRC the widget is functionally broken too.
>
> I suggest to read the text with a grain of salt, ignoring
> the code altogether and looking at the corresponding code of
> a real modern Gtk+ widget instead.
>
> [*] This is not an `official' statement, it's just
> a paraphrase of what Gtk+ documentation says about the
> methods used.
>
> >        When i enlarge it,  the pointer's like a sawtooth,
>
> I don't observe anything like this.  However the dial
> pointer is drawn with gtk_draw_polygon() (another deprecated
> function), therefore the look can be very theme dependent.
>
> Yeti
>
>
> --
> Anonyms eat their boogers.
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

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

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