Re: [gtk-list] Re: Widgets w/o borders & shadows?



On 25 Feb, Shawn T. Amundson shouted:
->  On 7 Feb 1998, Owen Taylor wrote:
->  
->  > > I'm tempted to make a separate widget for it, something like
->  > > "GtkBorderlessButton" or similar... OTOH, we could have an awful lot of
->  > > widgets around eventually, if we'd have a new one for every tiny
->  > > "speciality".
->  > 
->  > Shawn was thinking about writing such a thing a long time
->  > ago. (For Aorta) I don't know if he ever did. (As you say,
->  > it may not be the best approach..)
->  > 
->  
->  Ok, I'm like only 18 days late on this one... ;-)
->  
->  I did write that "flatbutton" widget quite a while ago.  It worked
->  great, but seems like overkill to get that affect.  (The widget is
->  old now, so it probably don't even compile, etc.)
->  
->  Ok, here is my bit about borders, for GTK 2.0.  I think this fits
->  in with theme stuff as well.  Basically, we would have something like:
->  
->  gtk_widget_set_border_shadow(widget, GTK_SHADOW_NONE);
->  gtk_widget_set_border_shadow(widget, GTK_SHADOW_IN);
->  
->  This actually would make implementing the code to draw a button
->  even more trivial than it is now, because it is pushed off into
->  some more generalized widget drawing code.  (Note this is already
->  done somewhat by the seperation of the shadow drawing from the 
->  widget, but this extends that a bit to allow changing the border
->  shadow at run time on any widget.)
->  
->  Perhaps Raster would have some insight into this since he has 
->  been looking at theming the button?

Um.. ooh.. I had all my buttons borderless earlier today... :) It's now
a shared library for drawing buttons rather than in gtk itself. Now I
know at some point I need to allow programmers to attach "HINTS" to
buttons - like Window Manager hints, so the theme can honor them - If I
hang a theme data pointer off the widget structures, i can add a
section for attaching hints. the theme, like a WM, may or may not honor
theme - a well written theme will. Actually the mroe I think about
this.. I liek the idea of Hints... :)

none of this stuff is in cvs yet and probably won't be for a while -
its a lot of "proof of concept" code just to fill out a few functions
with the necessary fucntion calls and restructure them slightly.

->  
->  --
->  Shawn T. Amundson		Complete Internet Solutions
->  Senior Systems Administrator	Minneapolis, Minnesota, USA
->  amundson@CompleteIS.com		http://www.CompleteIS.com/~amundson
->  
->  while (i) { last }
->      i, do exist.
->      forever;
->  

-- 
--------------- 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]