Re: Themes Themes... Drool time?



On 26 Feb, Jason Gilbert shouted:
->  Joel Dillon wrote:
->  > 
->  > > ALL drawing code is outside of gtk (currently i have only moved butotn
->  > > drawing code out). the theme contains all the code to do this - so gtk
->  > > doesn't have any drawing code anymore. thsi makes gtkbuton about
->  > > 400 lines shorter- and makes it cleaner. the theme library contains the
->  > > drawing code - if no theme is specified the default theme library is
->  > > loaded to do the drawing - which loosk just like what you have now.
->  
->  Well, I guess what I meant was (this could probably be gathered from the
->  src) say someone writes a new theme, but only decides to do the drawing
->  code in their theme and want everything else to use the default.  Is it
->  a requirement that a theme .so must implement every drawing routine?

a theme doesn't have to impliment any drawing code.. it can be a
wrapper that loads a .so per widget :) it "centralises" all drawing
through a single unified interface that can pass this on to anything it
likes, or do it itself.

->  >   It seems better to have a 'default' drawing code built into gtk
->  > in case loading the .so fails for some reason (library corruption,
->  > dodgy paths or whatever). Putting everything in .so's adds something
->  > else to go wrong ;)
->  
->  good point.  Gtk should probably be able to exist on its own w/o any
->  additional .so necessary.

well it already requires glib, and gdk and Xlib etc.. so ti already is
relient on many .so's - another doesn't hurt.

->  BTW, is it planned for the themability to be merged into the main gtk
->  dist?

as an option i believe for gtk2.0 - so if you dont install themes you
as a programmer using gtk or a user will never know it.

->  jason
->  

-- 
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com       /\___ /\ ___/||\___ ____/|/\___  raster@redhat.com
Carsten Haitzler           | _ //__\\ __||_ __\\ ___|| _ /  Red Hat Advanced
218/21 Conner Drive        || // __ \\_ \ | |   \ _/_|| /   Development Labs
Chapel Hill NC 27514 USA   ||\\\/  \//__/ |_|   /___/||\\   919 547 0012 ext 282
+1 (919) 929 9443, 801 4392   For pure Enlightenmenthttp://www.rasterman.com/ 



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