Hello community, here is the log from the commit of package rednotebook for openSUSE:Factory checked in at 2015-04-16 14:13:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rednotebook (Old) and /work/SRC/openSUSE:Factory/.rednotebook.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rednotebook" Changes: -------- --- /work/SRC/openSUSE:Factory/rednotebook/rednotebook.changes 2015-04-13 20:31:24.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rednotebook.new/rednotebook.changes 2015-04-16 14:13:53.000000000 +0200 @@ -1,0 +2,16 @@ +Wed Apr 15 22:45:22 UTC 2015 - zai...@opensuse.org + +- Update to version 1.10.1: + + When undoing a formatting action, only remove formatting, not + the text (lp#1326606). + + Fix searching with enter for text with non-ASCII characters + (lp#1430697). + + Fix filtering exports by tags containing non-ASCII characters + (lp#1267263). + + Don't remove whitespace from old-style tags in autocomplete box + (lp#1414603). + + Don't try to change spellchecking language if spellchecker is + not set up (lp#1443818). + + Don't try to access files with wrong encoding (lp#1443818). + +------------------------------------------------------------------- Old: ---- rednotebook-1.10.tar.gz New: ---- rednotebook-1.10.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rednotebook.spec ++++++ --- /var/tmp/diff_new_pack.HcCdec/_old 2015-04-16 14:13:54.000000000 +0200 +++ /var/tmp/diff_new_pack.HcCdec/_new 2015-04-16 14:13:54.000000000 +0200 @@ -17,7 +17,7 @@ Name: rednotebook -Version: 1.10 +Version: 1.10.1 Release: 0 Summary: Graphical diary and journal License: GPL-3.0+ ++++++ rednotebook-1.10.tar.gz -> rednotebook-1.10.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/CHANGELOG new/rednotebook-1.10.1/CHANGELOG --- old/rednotebook-1.10/CHANGELOG 2015-04-12 10:43:03.000000000 +0200 +++ new/rednotebook-1.10.1/CHANGELOG 2015-04-14 23:37:23.000000000 +0200 @@ -1,3 +1,11 @@ +== 1.10.1 (2015-04-14) == +* When undoing a formatting action, only remove formatting, not the text (lp:1326606). +* Fix searching with enter for text with non-ASCII characters (lp:1430697). +* Fix filtering exports by tags containing non-ASCII characters (lp:1267263). +* Don't remove whitespace from old-style tags in autocomplete box (lp:1414603). +* Don't try to change spellchecking language if spellchecker is not set up (lp:1443818). +* Don't try to access files with wrong encoding (lp:1443818). + == 1.10 (2015-04-12) == * Write data to temporary files first to prevent corrupted month files. * Add format button for monospace font. Automatically add the correct format for code blocks. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/PKG-INFO new/rednotebook-1.10.1/PKG-INFO --- old/rednotebook-1.10/PKG-INFO 2015-04-12 10:43:03.000000000 +0200 +++ new/rednotebook-1.10.1/PKG-INFO 2015-04-14 23:37:24.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: rednotebook -Version: 1.10 +Version: 1.10.1 Summary: Graphical daily journal with calendar, templates and keyword searching Home-page: http://rednotebook.sourceforge.net Author: Jendrik Seipp diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/gui/browser.py new/rednotebook-1.10.1/rednotebook/gui/browser.py --- old/rednotebook-1.10/rednotebook/gui/browser.py 2014-12-24 13:33:28.000000000 +0100 +++ new/rednotebook-1.10.1/rednotebook/gui/browser.py 2015-04-12 10:51:26.000000000 +0200 @@ -54,11 +54,6 @@ self.tmp_file = tempfile.NamedTemporaryFile(suffix='.html', prefix='rn-tmp', delete=False) self.tmp_uri = 'file://' + self.tmp_file.name - #self.connect('notify::load-status', self._on_load_status_changed) - - #def _on_load_status_changed(self, *args): - # print 'LOAD STATUS CHANGED', self.get_property('load-status') - def load_html_from_file(self, html): self.tmp_file.truncate(0) self.tmp_file.write(html) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/gui/customwidgets.py new/rednotebook-1.10.1/rednotebook/gui/customwidgets.py --- old/rednotebook-1.10/rednotebook/gui/customwidgets.py 2014-12-28 00:37:12.000000000 +0100 +++ new/rednotebook-1.10.1/rednotebook/gui/customwidgets.py 2015-04-12 11:30:40.000000000 +0200 @@ -49,11 +49,11 @@ self.entry = self.combo_box.get_child() # Autocompletion - self.entry_completion = gtk.EntryCompletion() - self.entry_completion.set_model(self.liststore) - self.entry_completion.set_minimum_key_length(1) - self.entry_completion.set_text_column(0) - self.entry.set_completion(self.entry_completion) + entry_completion = gtk.EntryCompletion() + entry_completion.set_model(self.liststore) + entry_completion.set_minimum_key_length(1) + entry_completion.set_text_column(0) + self.entry.set_completion(entry_completion) def add_entry(self, entry): self.liststore.append([entry]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/gui/editor.py new/rednotebook-1.10.1/rednotebook/gui/editor.py --- old/rednotebook-1.10/rednotebook/gui/editor.py 2015-04-12 10:38:58.000000000 +0200 +++ new/rednotebook-1.10.1/rednotebook/gui/editor.py 2015-04-14 23:33:39.000000000 +0200 @@ -51,9 +51,6 @@ self.old_text = '' self.search_text = '' - # Some actions should get an undo point even if for small changes. - self.force_adding_undo_point = False - # spell checker self._spell_checker = None self.enable_spell_check(False) @@ -80,8 +77,6 @@ return self.day_text_buffer.get_text(iter_start, iter_end).decode('utf-8') def insert(self, text, iter=None, overwrite=False, undoing=False): - self.force_adding_undo_point = True - self.day_text_buffer.handler_block(self.changed_connection) if overwrite: @@ -98,14 +93,14 @@ self.day_text_buffer.handler_unblock(self.changed_connection) self.on_text_change(self.day_text_buffer, undoing=undoing) - self.force_adding_undo_point = False - def replace_selection(self, text): - self.force_adding_undo_point = True + self.add_undo_point() + self.day_text_buffer.handler_block(self.changed_connection) self.day_text_buffer.delete_selection(interactive=False, default_editable=True) self.day_text_buffer.insert_at_cursor(text) - self.force_adding_undo_point = False + self.day_text_buffer.handler_unblock(self.changed_connection) + self.add_undo_point() def replace_selection_and_highlight(self, p1, p2, p3): """ @@ -238,7 +233,13 @@ def hide(self): self.day_text_view.hide() + def last_undo_point_is_dirty(self): + return self.get_text() != self.old_text + def add_undo_point(self): + if not self.last_undo_point_is_dirty(): + return + new_text = self.get_text() old_text = self.old_text[:] @@ -251,9 +252,6 @@ self.undo_redo_manager.add_action(undo.Action(undo_func, redo_func)) self.old_text = new_text - def last_undo_point_is_dirty(self): - return self.get_text() != self.old_text - def on_text_change(self, textbuffer, undoing=False): # Do not record changes while undoing or redoing. if undoing: @@ -262,7 +260,7 @@ much_text_changed = abs(len(self.get_text()) - len(self.old_text)) >= 5 - if much_text_changed or self.force_adding_undo_point: + if much_text_changed: self.add_undo_point() #=========================================================== @@ -275,15 +273,6 @@ def is_spell_check_enabled(self): return self._spell_checker is not None - def _enable_spell_check(self): - assert self.can_spell_check() - assert self._spell_checker is None - try: - self._spell_checker = gtkspell.Spell(self.day_text_view) - except gobject.GError as err: - logging.error('Spell checking could not be enabled: %s' % err) - self._spell_checker = None - def _use_system_language_for_spell_check(self): try: self._spell_checker.set_language(filesystem.LANGUAGE) @@ -293,6 +282,17 @@ 'on how to add custom dictionaries.' % (filesystem.LANGUAGE, err)) + def _enable_spell_check(self): + assert self.can_spell_check() + assert self._spell_checker is None + try: + self._spell_checker = gtkspell.Spell(self.day_text_view) + except gobject.GError as err: + logging.error('Spell checking could not be enabled: %s' % err) + self._spell_checker = None + else: + self._use_system_language_for_spell_check() + def _disable_spell_check(self): self._spell_checker.detach() self._spell_checker = None @@ -304,7 +304,6 @@ if enable and self._spell_checker is None: self._enable_spell_check() - self._use_system_language_for_spell_check() elif not enable and self._spell_checker is not None: self._disable_spell_check() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/gui/exports.py new/rednotebook-1.10.1/rednotebook/gui/exports.py --- old/rednotebook-1.10/rednotebook/gui/exports.py 2013-11-11 14:03:52.000000000 +0100 +++ new/rednotebook-1.10.1/rednotebook/gui/exports.py 2015-04-12 13:13:47.000000000 +0200 @@ -253,7 +253,7 @@ model_selected = self.selected_categories.get_model() for row in model_selected: - selected_categories.append(row[0]) + selected_categories.append(row[0].decode('utf-8')) return selected_categories diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/gui/insert_menu.py new/rednotebook-1.10.1/rednotebook/gui/insert_menu.py --- old/rednotebook-1.10/rednotebook/gui/insert_menu.py 2015-01-01 18:13:05.000000000 +0100 +++ new/rednotebook-1.10.1/rednotebook/gui/insert_menu.py 2015-04-12 11:16:46.000000000 +0200 @@ -262,7 +262,7 @@ link_name_entry.set_text(sel_text) def link_entered(): - return bool(link_location_entry.get_text()) + return bool(link_location_entry.get_text().decode('utf-8')) def on_link_changed(widget): # Only make the link submittable, if text has been entered. @@ -284,8 +284,8 @@ link_creator.hide() if response == gtk.RESPONSE_OK: - link_location = link_location_entry.get_text() - link_name = link_name_entry.get_text() + link_location = link_location_entry.get_text().decode('utf-8') + link_name = link_name_entry.get_text().decode('utf-8') if link_location and link_name: return '[%s ""%s""]' % (link_name, link_location) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/gui/main_window.py new/rednotebook-1.10.1/rednotebook/gui/main_window.py --- old/rednotebook-1.10/rednotebook/gui/main_window.py 2014-12-28 00:54:52.000000000 +0100 +++ new/rednotebook-1.10.1/rednotebook/gui/main_window.py 2015-04-12 10:58:18.000000000 +0200 @@ -360,7 +360,6 @@ size_group.add_widget(edit_button) size_group.add_widget(preview_button) - # Do not forget to update the text in editor and preview respectively if preview: # Enter preview mode edit_scroll.hide() @@ -377,7 +376,6 @@ edit_button.hide() self.template_manager.set_template_menu_sensitive(not preview) - # Disable insert shortcuts in preview mode. self.insert_actiongroup.set_sensitive(not preview) self.format_actiongroup.set_sensitive(not preview) self.insert_button.set_sensitive(not preview) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/gui/menu.py new/rednotebook-1.10.1/rednotebook/gui/menu.py --- old/rednotebook-1.10/rednotebook/gui/menu.py 2015-01-02 20:34:34.000000000 +0100 +++ new/rednotebook-1.10.1/rednotebook/gui/menu.py 2015-04-12 14:04:10.000000000 +0200 @@ -223,8 +223,7 @@ def on_undo(self, widget): editor = self.main_window.day_text_field - if editor.last_undo_point_is_dirty(): - editor.add_undo_point() + editor.add_undo_point() self.main_window.undo_redo_manager.undo() def on_redo(self, widget): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/gui/search.py new/rednotebook-1.10.1/rednotebook/gui/search.py --- old/rednotebook-1.10/rednotebook/gui/search.py 2013-03-01 16:58:27.000000000 +0100 +++ new/rednotebook-1.10.1/rednotebook/gui/search.py 2015-04-12 11:10:10.000000000 +0200 @@ -45,7 +45,7 @@ def on_entry_activated(self, entry): """Called when the user hits enter.""" - search_text = entry.get_text() + search_text = self.get_active_text() self.add_entry(search_text) self.search(search_text) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/info.py new/rednotebook-1.10.1/rednotebook/info.py --- old/rednotebook-1.10/rednotebook/info.py 2015-04-12 10:42:47.000000000 +0200 +++ new/rednotebook-1.10.1/rednotebook/info.py 2015-04-14 23:37:15.000000000 +0200 @@ -30,7 +30,7 @@ from rednotebook.external import argparse -version = '1.10' +version = '1.10.1' author = 'Jendrik Seipp' author_mail = 'jendrikse...@web.de' url = 'http://rednotebook.sourceforge.net' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/journal.py new/rednotebook-1.10.1/rednotebook/journal.py --- old/rednotebook-1.10/rednotebook/journal.py 2014-12-29 01:33:37.000000000 +0100 +++ new/rednotebook-1.10.1/rednotebook/journal.py 2015-04-12 12:38:50.000000000 +0200 @@ -411,7 +411,6 @@ if not Month.same_month(new_date, old_date) or self.month is None: self.month = self.get_month(self.date) - #self.month.visited = True self.frame.set_date(self.month, self.date, self.day) @@ -487,7 +486,7 @@ def normalize_tag(self, tag): - return tag.replace(' ', '').lower() + return tag.replace(' ', '_').lower() def get_entries(self, category): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rednotebook-1.10/rednotebook/templates.py new/rednotebook-1.10.1/rednotebook/templates.py --- old/rednotebook-1.10/rednotebook/templates.py 2013-03-01 16:59:05.000000000 +0100 +++ new/rednotebook-1.10.1/rednotebook/templates.py 2015-04-14 21:12:15.000000000 +0200 @@ -325,9 +325,7 @@ def get_available_template_files(self): path = self.dirs.template_dir - files = [os.path.join(path, f) for f in os.listdir(path)] - # Remove dirs and temporary files. - return [f for f in files if os.path.isfile(f) and not f.endswith('~')] + return [os.path.join(path, f) for f in os.listdir(path) if f.endswith('.txt')] def _escape_template_name(self, name): """Remove special xml chars for GUI display."""