#33 4.0.4 Patch to add "Go to page..." dialog

open
nobody
None
5
2014-08-21
2009-08-15
Nephiel
No

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")

Discussion

  • Nephiel
    Nephiel
    2009-08-15

    "Go To Page..." dialog patch for Comix 4.0.4

     
    Attachments
  • 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.

     
  • Nephiel
    Nephiel
    2009-08-27

    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.