Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gedit-plugins for openSUSE:Factory checked in at 2023-01-24 19:42:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gedit-plugins (Old) and /work/SRC/openSUSE:Factory/.gedit-plugins.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gedit-plugins" Tue Jan 24 19:42:59 2023 rev:67 rq:1060495 version:44.1 Changes: -------- --- /work/SRC/openSUSE:Factory/gedit-plugins/gedit-plugins.changes 2023-01-07 17:19:32.470093955 +0100 +++ /work/SRC/openSUSE:Factory/.gedit-plugins.new.32243/gedit-plugins.changes 2023-01-24 20:21:22.232798328 +0100 @@ -1,0 +2,6 @@ +Fri Jan 20 18:11:28 UTC 2023 - Bjørn Lie <bjorn....@gmail.com> + +- Update to version 44.1: + + Some bug fixes. + +------------------------------------------------------------------- Old: ---- gedit-plugins-44.0.tar.xz New: ---- gedit-plugins-44.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gedit-plugins.spec ++++++ --- /var/tmp/diff_new_pack.8mHgaq/_old 2023-01-24 20:21:22.732800833 +0100 +++ /var/tmp/diff_new_pack.8mHgaq/_new 2023-01-24 20:21:22.740800873 +0100 @@ -18,7 +18,7 @@ Name: gedit-plugins -Version: 44.0 +Version: 44.1 Release: 0 Summary: A collection of plugins for gedit License: GPL-2.0-or-later ++++++ gedit-plugins-44.0.tar.xz -> gedit-plugins-44.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gedit-plugins-44.0/NEWS new/gedit-plugins-44.1/NEWS --- old/gedit-plugins-44.0/NEWS 2023-01-02 00:04:22.000000000 +0100 +++ new/gedit-plugins-44.1/NEWS 2023-01-19 18:30:20.000000000 +0100 @@ -1,3 +1,7 @@ +News in 44.1, 2023-01-19 +------------------------ +* Some bug fixes. + News in 44.0, 2023-01-02 ------------------------ * Terminal plugin: check that all external GSettings can be used before using diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gedit-plugins-44.0/meson.build new/gedit-plugins-44.1/meson.build --- old/gedit-plugins-44.0/meson.build 2023-01-02 00:04:22.000000000 +0100 +++ new/gedit-plugins-44.1/meson.build 2023-01-19 18:30:20.000000000 +0100 @@ -1,6 +1,6 @@ project( 'gedit-plugins', 'c', - version: '44.0', + version: '44.1', meson_version: '>= 0.50' ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gedit-plugins-44.0/plugins/sessionsaver/sessionsaver/windowactivable.py new/gedit-plugins-44.1/plugins/sessionsaver/sessionsaver/windowactivable.py --- old/gedit-plugins-44.0/plugins/sessionsaver/sessionsaver/windowactivable.py 2023-01-02 00:04:22.000000000 +0100 +++ new/gedit-plugins-44.1/plugins/sessionsaver/sessionsaver/windowactivable.py 2023-01-19 18:30:20.000000000 +0100 @@ -17,7 +17,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301, USA. -from gi.repository import GObject, Gio, Gedit +from gi.repository import GObject, Gio, Tepl, Gedit from .dialogs import SaveSessionDialog, SessionManagerDialog from .store.xmlsessionstore import XMLSessionStore from .appactivatable import SessionSaverAppActivatable @@ -95,13 +95,23 @@ self._remove_menus() self._insert_menus() + def needs_new_window_to_load_session(self): + if len(self.window.get_documents()) > 1: + return True + + tab = self.window.get_active_tab() + if tab is None: + return False + + if (Tepl.Buffer.is_untouched(tab.get_document()) and + tab.get_state() == Gedit.TabState.STATE_NORMAL): + return False + + return True + def load_session(self, session): # Note: a session has to stand on its own window. - tab = self.window.get_active_tab() - if tab is not None and \ - not (tab.get_document().is_untouched() and - tab.get_state() == Gedit.TabState.STATE_NORMAL): - # Create a new gedit window + if self.needs_new_window_to_load_session(): window = Gedit.App.get_default().create_window(None) window.show() else: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gedit-plugins-44.0/plugins/synctex/synctex/synctex.py new/gedit-plugins-44.1/plugins/synctex/synctex/synctex.py --- old/gedit-plugins-44.0/plugins/synctex/synctex/synctex.py 2023-01-02 00:04:22.000000000 +0100 +++ new/gedit-plugins-44.1/plugins/synctex/synctex/synctex.py 2023-01-19 18:30:20.000000000 +0100 @@ -20,7 +20,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301, USA. -from gi.repository import GObject, Pango, Gtk, Gedit, Peas, PeasGtk, Gio, Gdk +from gi.repository import GObject, Pango, Gtk, Gedit, Peas, PeasGtk, Gio, Gdk, Tepl from .evince_dbus import EvinceWindowProxy import dbus.mainloop.glib import logging @@ -176,8 +176,7 @@ self.last_iters = None def goto_line (self, line, time): - self._doc.goto_line(line) - self._view.scroll_to_cursor() + Tepl.View.goto_line(self._view, line) self._window.set_active_tab(Gedit.Tab.get_from_document(self._doc)) self._highlight() self._window.present_with_time (time)