mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression affecting recipes that use the time module. Fix regression affecting creation of eggs for linux distribution. Fix #1455 (Growl Messages - Encoding of Umlaute)
This commit is contained in:
parent
93483213d6
commit
653cbd13e7
4
setup.py
4
setup.py
@ -402,6 +402,8 @@ if __name__ == '__main__':
|
||||
extra_link_args=['-framework', 'IOKit'])
|
||||
)
|
||||
|
||||
plugins = ['plugins/%s.so'%(x.name.rpartition('.')[-1]) for x in ext_modules]
|
||||
|
||||
setup(
|
||||
name = APPNAME,
|
||||
packages = find_packages('src'),
|
||||
@ -410,7 +412,7 @@ if __name__ == '__main__':
|
||||
author = 'Kovid Goyal',
|
||||
author_email = 'kovid@kovidgoyal.net',
|
||||
url = 'http://%s.kovidgoyal.net'%APPNAME,
|
||||
package_data = {'calibre':['plugins/*']},
|
||||
package_data = {'calibre':plugins},
|
||||
include_package_data = True,
|
||||
entry_points = entry_points,
|
||||
zip_safe = False,
|
||||
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
@ -120,7 +120,7 @@ class Main(MainWindow, Ui_MainWindow):
|
||||
self.hide() if self.isVisible() else self.show()
|
||||
self.connect(self.system_tray_icon, SIGNAL('activated(QSystemTrayIcon::ActivationReason)'), sta)
|
||||
def tcme(self, *args):
|
||||
print args
|
||||
pass
|
||||
self.tool_bar.contextMenuEvent = tcme
|
||||
####################### Location View ########################
|
||||
QObject.connect(self.location_view, SIGNAL('location_selected(PyQt_PyObject)'),
|
||||
|
@ -5,7 +5,7 @@ import re, collections
|
||||
from PyQt4.QtGui import QStatusBar, QMovie, QLabel, QWidget, QHBoxLayout, QPixmap, \
|
||||
QVBoxLayout, QSizePolicy, QToolButton, QIcon, QScrollArea, QFrame
|
||||
from PyQt4.QtCore import Qt, QSize, SIGNAL, QCoreApplication
|
||||
from calibre import fit_image, preferred_encoding
|
||||
from calibre import fit_image, preferred_encoding, isosx
|
||||
from calibre.gui2 import qstring_to_unicode
|
||||
|
||||
class BookInfoDisplay(QWidget):
|
||||
@ -196,9 +196,12 @@ class StatusBar(QStatusBar):
|
||||
self.book_info.show_data({})
|
||||
|
||||
def showMessage(self, msg, timeout=0):
|
||||
ret = QStatusBar.showMessage(self, msg, timeout)
|
||||
if self.systray is not None:
|
||||
if isosx and isinstance(msg, unicode):
|
||||
msg = msg.encode(preferred_encoding)
|
||||
self.systray.showMessage('calibre', msg, self.systray.Information, 10000)
|
||||
return QStatusBar.showMessage(self, msg, timeout)
|
||||
return ret
|
||||
|
||||
def jobs(self):
|
||||
src = qstring_to_unicode(self.movie_button.jobs.text())
|
||||
|
@ -19,7 +19,7 @@ recipe_modules = [
|
||||
'clarin', 'financial_times', 'heise', 'le_monde', 'harpers', 'science_aas',
|
||||
'science_news', 'the_nation', 'lrb', 'harpers_full', 'liberation',
|
||||
'linux_magazine', 'telegraph_uk', 'utne', 'sciencedaily', 'forbes',
|
||||
'time', 'endgadget', 'fudzilla',
|
||||
'time_magazine', 'endgadget', 'fudzilla',
|
||||
]
|
||||
|
||||
import re, imp, inspect, time, os
|
||||
|
Loading…
x
Reference in New Issue
Block a user