On 2002.09.17 Adam Williamson wrote:
>Another couple:
>
>1. If I drag a scrollbar in a GTK1 app, the scrollbar background (with
>the little darker grey "groove" gets wiped and replaced with a sold,
>smooth grey block. If I then move the cursor out of the window and back
>in (making the app non-active then active again), the background is
>redrawn.
>
That works fine for me, but see below...
>2. Again in GTK1, the Mandrake theme isn't very good at doing very small
>blocks in scrollbars (what's the little block that represents your
>position in the page actually CALLED, anyway?) - in my Cooker mailing
>list email folder, the block is tiny because the list is so long, and it
>looks ugly - it looks sort of like the groove you get in the centre of
>the block when it's long enough to be displayed normally, only rotated
>90 degrees. Not very nice.
>
Curious. That works fine for me with GTK1 and fails like you say in GTK2.
Perhaps with this info somebody can get the real problem. Here is a 'patch'.
I think the crux engine (or perhaps gdk_pixbuf??) is doing funny things
when vsize to put the pixmap is lesser than heigth of pixmap, or something
like that.
Anyways, I have found a workaroud. Problem looks like default
GtkScrollbar::min_slider_length is too small in GTK2. So if you just add
this on /usr/share/themes/Crux/gtk-2.0/gtkrc, you get a min size equal to GTK1:
style "default"
{
GtkWidget::interior_focus = 0
GtkWidget::focus_padding = 0
GtkWidegt::focus_line_width = 3
GtkRange::slider_width = 11
GtkRange::stepper_size = 11
GtkRange::trough_border = 2
+ GtkScrollbar::min_slider_length = 24 <================
GtkScale::slider_length = 16
GtkCheckButton::indicator_size = 10
GtkCheckButton::indicator_spacing = 3
(don't trust the rest of values, I've been playing. But marked one does the
trick)
That works for GTK2, do no know how to do it for gtk1.
Hope this helps.
--
J.A. Magallon <[EMAIL PROTECTED]> \ Software is like sex:
werewolf.able.es \ It's better when it's free
Mandrake Linux release 9.0 (Cooker) for i586
Linux 2.4.20-pre7-jam1 (gcc 3.2 (Mandrake Linux 9.0 3.2-1mdk))