summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 76961e5)
raw | patch | inline | side by side (parent: 76961e5)
author | miklosh <miklosh@users.sourceforge.net> | |
Sun, 19 Aug 2007 22:32:56 +0000 (22:32 +0000) | ||
committer | miklosh <miklosh@users.sourceforge.net> | |
Sun, 19 Aug 2007 22:32:56 +0000 (22:32 +0000) |
src/extension/internal/pdfinput/pdf-input.cpp | patch | blob | history |
diff --git a/src/extension/internal/pdfinput/pdf-input.cpp b/src/extension/internal/pdfinput/pdf-input.cpp
index 7def9927d1ccefac0ca045535982cd48fbba37c1..3e3ea7bfe1d65aab02befeea09708f6bc64bcacc 100644 (file)
new class Gtk::Adjustment(1, 1, _pdf_doc->getNumPages(), 1, 10, 0));
_pageNumberSpin = Gtk::manage(new class Gtk::SpinButton(*_pageNumberSpin_adj, 1, 1));
hbox2 = Gtk::manage(new class Gtk::HBox(false, 0));
+ // Disable the page selector when there's only one page
+ if ( _pdf_doc->getCatalog()->getNumPages() == 1 ) {
+ _pageNumberSpin->set_sensitive(false);
+ }
// Crop settings
_cropCheck = Gtk::manage(new class Gtk::CheckButton(_("Crop to:")));