Re: confusion regarding drawing of widgets



On Mon, 2007-12-24 at 04:42 -0800, iluvlinux wrote:
> hi
> but how Gtk+ decides whether to draw using engine or GDK because when we
> install gtk, both GDK and the default theme engine gets installed and even
> applications (mostly) do not specifically request for theme engine to be
> used. 
> bye

GTK+ does almost all widget drawing trough the engine (there maybe some
exceptions). There is a buildin engine implemented inside GTK+ [1] that
is used if no engine is specified by the theme.
If the applications use the gtk_paint_* functions then the theme engine
is used.

Benjamin


[1] Technically engines override the GtkStyle class and override the
style function implementation.

Attachment: signature.asc
Description: This is a digitally signed message part



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