[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    MMB Action in Scrollbar
From:       Sean McGlynn <sean () tmiau ! com>
Date:       2001-11-17 4:42:52
[Download RAW message or body]

Hello,

KDE3's scrollbar sliders don't jump to the position of the middle mouse 
button when it is clicked within the scrollbar area, like it used to by 
default in KDE2. I couldn't find an option to change the behaviour anywhere, 
so I added a line to
kdelibs/styles/highcolor/highcolor.cpp which seems to do the trick. Is there 
a reason why this action hasn't been enabled? The only other styles that 
currently have this option set are Qt's Motif and CDE (which inherits Motif).

The patch works fine (it's only a one-liner adding an option!), *but* there 
is a little bug in the code somewhere that allows the slider on the scrollbar 
to move past the end of the bottom (or right-hand side for HSB) of the 
viewable area when it should adjust itself not to. I'll have a look for the 
reason if I get a chance, or perhaps whoever knows the code well could fix 
this in a jiffy if they've got a moment :-)

The patch is against CVS from a couple of days ago but is still up to date 
going by webcvs. Sorry if it's not.

Cheers,
Sean
-- 
Sean McGlynn
sean@tmiau.com
["highcolor.cpp.patch" (text/x-diff)]

--- highcolor.cpp.orig	Sat Nov 17 03:12:53 2001
+++ highcolor.cpp	Sat Nov 17 03:13:38 2001
@@ -1617,6 +1617,7 @@ int HighColorStyle::styleHint( StyleHint
 		case SH_PopupMenu_MouseTracking:
 		case SH_ComboBox_ListMouseTracking:
 		case SH_ItemView_ChangeHighlightOnFocus:
+		case SH_ScrollBar_MiddleClickAbsolutePosition:
 			return 1;
 	
 		default:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic