patch for gtkscrolledwindow
- From: adrian <feiguin ifir ifir edu ar>
- To: gtk-list redhat com
- cc: gtk-devel-list redhat com
- Subject: patch for gtkscrolledwindow
- Date: Wed, 24 Feb 1999 11:05:55 +0000 (GMT)
Self scrolling widgets (gtklayout, gtkclist,gtkctree, gtkviewport,
gtktext, and the next version of gtksheet) are added to a scrolledwindow
with their own viewport, and they have to draw the frame where they are
displayed. This can be seen in some of these
files in widget_class->expose_event and widget_class->draw as a
gtk_draw_shadow. Also, they have to spend effort in considering the
border width with a lot of widget->style->klass->x/ythickness in the code.
I believe that a much more elegant way to deal with this is adding a
shadow_type field to the GtkScrolledWindow structure, and a
gtk_scrolled_window_set_shadow_type function. The default value is
GTK_SHADOW_NONE,
and the scrolledwindow works as the current gtkscrolledwindow. If you set
GTK_SHADOW_IN, a nice shadow frame appears arround the viewport.
If this patch is implemented, the above mentioned widgets can be
re-written omiting all the x/ythickness code, and it became much easier to
deal with the adjustments and size allocation. In gtkviewport you can
remove gtk_viewport_paint, for example.
Regards,
<ADRIAN>
adrian@ifir.edu.ar
begin 664 gtkscrolledwindow.diff.gz
M'XL("!`MU#8``V=T:W-C<F]L;&5D=VEN9&]W+F1I9F8`[5E;;]I(%'X.O^+T
MI0I@)YC[142A"4WI4A(!:=0GRX$)>..:U#:D;)7_OG/S?09,TI56VG54:GO.
M;<Y\\\WQS-Q\>`!U#:?+U7=T:LP=T[!/%]ZC^TQ_9\[*LM#\V;3GJ^>3&9RN
M7>?4=6:DL:AJ)_BO3NY%PCE553/:/;I#<_B([J%<!4UK:ZUVM0Q:J]7*%8O%
M@YP>3=>(6M+J4"JWL;%*B5DZ/P>U7E.:4,2_#3@_SP%`;WRE?^U=?KZ=3+_T
M1U/%?_=I<C&^'@X_],;ZS?5P</$M:/F:;E%9R]U@='E]I]\,>Q=]9BS>,/G4
M(_]-O]WT<T6Q2@Y>.CG`?R389I4$VZPH=1JLZQF>.8/-RIP#[KCN]UQG7=?7
M]G?C"6+7\97W>&?.%\B+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