Version: (using KDE KDE 3.1) Installed from: SuSE RPMs Compiler: GCC 3.2 OS: Linux In kghostview (0.13.2 and earlier versions): After opening a document in kghostview. I scroll down the page using the mouse wheel, on reaching the bottom it will skip to the next page - ok, so this works fine. If I open a second document, the mouse wheel will skip two pages at the bottom of the page!! After opening a third document, it will skip three pages... and so on, skipping an extra page for each document I open! (It also happens on the way up too) I have to quit kghostview and reload it for each document I wish to read (I like mouse wheels :).
Wheel mouse handling has changed in both BRANCH and HEAD. I don't know if it fixed this particular problem and don't have a wheel mouse, so I ask whether any can check it out. thank you, luis pedro coelho
I finally installed a wheel-mouse I had lying around (you got to love open source: it's easy to get a webserver going, but making a mouse work takes an hour of man + google + edit config files in random fashion :). I can see this bug in HEAD, but not in 3.1.2. It might be related to the commit I did this mourning. Will try to investigate.
I meant the other way around: I can reproduce in 3.1.2 but not in HEAD. sorry, luis
In fact, the exact behaviour the original report speaks of is only really visible in 3.0.0. Both HEAD and 3.1.2 seems to skip pages after opening several files, but not in a so orderly fashion. I can consistently reproduce by opening several files in a row that eventually I will only be able to see the even numbered pages, but I don't really see the full logic yet.
Subject: KDE_3_1_BRANCH: kdegraphics/kghostview CVS commit by luis_pedro: Backport of fix: do initialization in the constructor so as not to do it twice resulting in slots being called several times. CCMAIL: 53693-close@bugs.kde.org M +7 -6 kgv_view.cpp 1.110.2.5 --- kdegraphics/kghostview/kgv_view.cpp #1.110.2.4:1.110.2.5 @@ -239,4 +239,11 @@ KGVPart::KGVPart( QWidget* parentWidget, this, SLOT( slotPageMoved( int, int ) ) ); + connect( _pageView, SIGNAL( nextPage() ), SLOT( slotNextPage() )); + connect( _pageView, SIGNAL( prevPage() ), SLOT( slotPrevPage() )); + connect( _pageView, SIGNAL( zoomIn() ), SLOT( slotZoomIn() )); + connect( _pageView, SIGNAL( zoomOut() ), SLOT( slotZoomOut() )); + connect( _pageView, SIGNAL( ReadUp() ), SLOT( slotReadUp() )); + connect( _pageView, SIGNAL( ReadDown() ), SLOT( slotReadDown() )); + readSettings(); @@ -538,10 +545,4 @@ void KGVPart::slotOpenFileCompleted() _docManager->goToPage( _currentPage ); stateChanged( "documentState" ); - connect( _pageView, SIGNAL( nextPage() ), SLOT( slotNextPage() )); - connect( _pageView, SIGNAL( prevPage() ), SLOT( slotPrevPage() )); - connect( _pageView, SIGNAL( zoomIn() ), SLOT( slotZoomIn() )); - connect( _pageView, SIGNAL( zoomOut() ), SLOT( slotZoomOut() )); - connect( _pageView, SIGNAL( ReadUp() ), SLOT( slotReadUp() )); - connect( _pageView, SIGNAL( ReadDown() ), SLOT( slotReadDown() )); if ( !_fileWatcher->contains( m_file ) ) _fileWatcher->addFile( m_file );