diff --git a/cozy/book_element.py b/cozy/book_element.py index 5bd753e3..3f13bd84 100644 --- a/cozy/book_element.py +++ b/cozy/book_element.py @@ -180,7 +180,7 @@ def __init__(self, b, ui): title_label.props.max_width_chars = 30 title_label.props.justify = Gtk.Justification.CENTER - author_label = Gtk.Label((self.book.author[:MAX_BOOK_LENGTH] + '...') if len(self.book.author) > MAX_BOOK_LENGTH else self.book.author) + author_label = Gtk.Label.new((self.book.author[:MAX_BOOK_LENGTH] + '...') if len(self.book.author) > MAX_BOOK_LENGTH else self.book.author) author_label.set_xalign(0.5) author_label.set_line_wrap(Pango.WrapMode.WORD_CHAR) author_label.props.max_width_chars = 30 diff --git a/meson.build b/meson.build index fc27c983..34b8a15a 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('cozy', - version: '0.4.2', + version: '0.4.2d', meson_version: '>= 0.40.0') project_name = 'cozy'