I just made a patch for Comix 4.0.4 to add this feature. I even added a nifty slider to the dialog.
It works for me. Feel free to play with it, I'd love to see this feature in the next release.
Changed files:
comix-4.0.4/src/main.py
comix-4.0.4/src/ui.py
comix-4.0.4/install.py
New files:
comix-4.0.4/src/pageselector.py
Changelog:
-Added new PageSelector class that handles the "Go to page..." dialog
-Added "Go to page..." menu item to the Go menu
-Added "Go to page..." button to the toolbar
Changed keyboard shortcuts/hotkeys (now these are the same as Comix v3.x.x):
-"G" hotkey now opens the "Go to page..." dialog, instead of the magnifying glass
-"Z" hotkey now toggles the magnifying glass on/off
-Replaced shortcut "G" (which is now "Go to page") with "L" in the _View->Magnifying G_lass menu item
(in Comix version 3.x.x it was Magnifying _Lens, hence the "L")
"Go To Page..." dialog patch for Comix 4.0.4
Thank you very much for this patch. It works perfectly fine.
I just get the message "Could not install /usr/share/comix/src/pageselector.pyc" during the installation process. It doesn't seem to hinder the patch from working but I thought it was worth mentioning.
Well, let's hope this feature will find its way to the next release. And thanks again.
That message during install is just a warning, should be no problem. But it can be fixed anyway. After applying the patches, and before installing, navigate to the ./src/ directory and run:
python -mcompileall .
to compile the new or modified .py files in the src directory, generating the matching .pyc files.
Then install comix normally.