From f53c5f3916c6065f49e1de1e05cddf1918efd19d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Jun 2009 17:07:12 -0700 Subject: [PATCH 1/5] Fix #2574 (Cannot Maximize Calibre Anymore) --- src/calibre/gui2/main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index 7766c61fe5..f641e6f64e 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -477,8 +477,9 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI): else: self.status_bar.cover_flow_button.disable(pictureflowerror) - - self.setMaximumHeight(max_available_height()) + self._calculated_available_height = min(max_available_height()-15, + self.height()) + self.resize(self.width(), self._calculated_available_height) if config['autolaunch_server']: @@ -610,7 +611,8 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI): else: self.cover_flow.setVisible(False) #self.status_bar.book_info.book_data.setMaximumHeight(1000) - self.setMaximumHeight(available_height()) + self.resize(self.width(), self._calculated_available_height) + #self.setMaximumHeight(available_height()) def toggle_tags_view(self, show): if show: From 37898b16a5bf33fbda31e32d00157f827055481e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Jun 2009 17:07:35 -0700 Subject: [PATCH 2/5] Fix #2684 (Icon missing in Tag Editor dialog) --- src/calibre/gui2/images/back.svg | 447 ++++++++++------------------ src/calibre/gui2/images/forward.svg | 429 ++++++++++---------------- 2 files changed, 320 insertions(+), 556 deletions(-) diff --git a/src/calibre/gui2/images/back.svg b/src/calibre/gui2/images/back.svg index 5c0b1ffc28..053ffecb8c 100644 --- a/src/calibre/gui2/images/back.svg +++ b/src/calibre/gui2/images/back.svg @@ -1,7 +1,6 @@ - + - - - - - -image/svg+xml - - - - - - - - - - - - \ No newline at end of file + inkscape:version="0.45" + version="1.0" + sodipodi:docbase="/home/dobey/Projects/gnome-icon-theme/scalable/actions" + sodipodi:docname="go-previous.svg" + inkscape:export-filename="/home/jimmac/src/cvs/gnome/gnome-icon-theme/16x16/actions/go-previous.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + + + + + + + + + + + + + + + + + image/svg+xml + + Go previous + August 2006 + + + Andreas Nilsson + + + + + Jakub Steiner + + + http://www.gnome.org + + + previous + arrow + go + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/calibre/gui2/images/forward.svg b/src/calibre/gui2/images/forward.svg index 56756844e5..450a142bbc 100644 --- a/src/calibre/gui2/images/forward.svg +++ b/src/calibre/gui2/images/forward.svg @@ -1,7 +1,6 @@ - + - - - - - -image/svg+xml - - - - - - - - - - - - \ No newline at end of file + inkscape:version="0.45" + version="1.0" + sodipodi:docbase="/home/dobey/Projects/gnome-icon-theme/scalable/actions" + sodipodi:docname="go-next.svg" + inkscape:export-filename="/home/jimmac/src/cvs/gnome/gnome-icon-theme/16x16/actions/go-previous.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + + + + + + + + + + + + + + + + + image/svg+xml + + Go next + August 2006 + + + Andreas Nilsson + + + + + Jakub Steiner + + + http://www.gnome.org + + + next + arrow + go + + + + + + + + + + + + + + + + + + + + + + From d80dbdc17c22df391247db5a5dde9838e82ad581 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Jun 2009 17:26:51 -0700 Subject: [PATCH 3/5] Fix #2711 (Multi-Level Toc failure) --- src/calibre/ebooks/oeb/transforms/structure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/transforms/structure.py b/src/calibre/ebooks/oeb/transforms/structure.py index 468ba61ff0..21be375b1a 100644 --- a/src/calibre/ebooks/oeb/transforms/structure.py +++ b/src/calibre/ebooks/oeb/transforms/structure.py @@ -149,7 +149,7 @@ class DetectStructure(object): #node.add(_('Top'), _href) if self.opts.level2_toc is not None: added2 = {} - level2 = list(XPath(self.opts.level2_toc)(item.data)) + level2 = list(XPath(self.opts.level2_toc)(document.data)) for elem in level2: level1 = None for item in document.data.iterdescendants(): @@ -162,7 +162,7 @@ class DetectStructure(object): added2[elem] = level1.add(text, _href, play_order=self.oeb.toc.next_play_order()) if self.opts.level3_toc is not None: - level3 = list(XPath(self.opts.level3_toc)(item.data)) + level3 = list(XPath(self.opts.level3_toc)(document.data)) for elem in level3: level2 = None for item in document.data.iterdescendants(): From 021f4be8369b5f7efa001b3dbd04db5d9711c727 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Jun 2009 17:35:52 -0700 Subject: [PATCH 4/5] ... --- src/calibre/gui2/viewer/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/viewer/main.py b/src/calibre/gui2/viewer/main.py index d81a24223b..ccf215210c 100644 --- a/src/calibre/gui2/viewer/main.py +++ b/src/calibre/gui2/viewer/main.py @@ -309,7 +309,7 @@ class EbookViewer(MainWindow, Ui_EbookViewer): m = bm[1].split('#') if len(m) > 1: spine_index, m = int(m[0]), m[1] - if self.current_index == spine_index: + if spine_index > -1 and self.current_index == spine_index: self.view.goto_bookmark(m) else: self.pending_bookmark = bm From a7f2925249687cdbc79cf053661526cf7ce361b2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Jun 2009 17:37:11 -0700 Subject: [PATCH 5/5] beta 9 --- src/calibre/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/constants.py b/src/calibre/constants.py index b61169cef2..d5e25661dd 100644 --- a/src/calibre/constants.py +++ b/src/calibre/constants.py @@ -2,7 +2,7 @@ __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __docformat__ = 'restructuredtext en' __appname__ = 'calibre' -__version__ = '0.6.0b8' +__version__ = '0.6.0b9' __author__ = "Kovid Goyal " import re