Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libspelling for openSUSE:Factory checked in at 2024-03-20 21:15:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libspelling (Old) and /work/SRC/openSUSE:Factory/.libspelling.new.1905 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libspelling" Wed Mar 20 21:15:21 2024 rev:4 rq:1159441 version:0.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libspelling/libspelling.changes 2023-11-07 21:27:22.649765047 +0100 +++ /work/SRC/openSUSE:Factory/.libspelling.new.1905/libspelling.changes 2024-03-20 21:18:46.751819830 +0100 @@ -1,0 +2,9 @@ +Mon Mar 4 08:46:51 UTC 2024 - Dominique Leuenberger <dims...@opensuse.org> + +- Update to version 0.2.1: + + Fix licenses to all be LGPLv2.1+. + + Fix handling of cursor-moved signal. +- Drop 6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch: fixed + upstream. + +------------------------------------------------------------------- Old: ---- 6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch libspelling-0.2.0.tar.xz New: ---- libspelling-0.2.1.tar.xz BETA DEBUG BEGIN: Old: + Fix handling of cursor-moved signal. - Drop 6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch: fixed upstream. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libspelling.spec ++++++ --- /var/tmp/diff_new_pack.xGK5SJ/_old 2024-03-20 21:18:47.403843782 +0100 +++ /var/tmp/diff_new_pack.xGK5SJ/_new 2024-03-20 21:18:47.403843782 +0100 @@ -1,7 +1,7 @@ # # spec file for package libspelling # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,12 @@ Name: libspelling -Version: 0.2.0 +Version: 0.2.1 Release: 0 Summary: A spellcheck library for GTK 4 License: LGPL-2.1-or-later URL: https://gitlab.gnome.org/chergert/libspelling Source: https://download.gnome.org/sources/libspelling/0.2/%{name}-%{version}.tar.xz -# PATCH-FIX-UPSTREAM 6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch -- egg: fix license to be LGPLv2.1+ -Patch0: %{url}/-/commit/6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch BuildRequires: c_compiler BuildRequires: meson ++++++ libspelling-0.2.0.tar.xz -> libspelling-0.2.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.2.0/NEWS new/libspelling-0.2.1/NEWS --- old/libspelling-0.2.0/NEWS 2023-09-17 01:16:16.000000000 +0200 +++ new/libspelling-0.2.1/NEWS 2024-03-04 01:39:28.000000000 +0100 @@ -1,3 +1,9 @@ +libspelling 0.2.1 +================= + + * Fix licenses to all be LGPLv2.1+ + * Fix handling of cursor-moved signal + libspelling 0.2.0 ================= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.2.0/lib/egg-action-group.h new/libspelling-0.2.1/lib/egg-action-group.h --- old/libspelling-0.2.0/lib/egg-action-group.h 2023-09-17 01:16:16.000000000 +0200 +++ new/libspelling-0.2.1/lib/egg-action-group.h 2024-03-04 01:39:28.000000000 +0100 @@ -1,19 +1,21 @@ /* egg-action-group.h * - * Copyright (C) 2017 Christian Hergert <cherg...@redhat.com> + * Copyright 2017-2023 Christian Hergert <cherg...@redhat.com> * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * This library is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of the + * License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This library is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + * + * SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.2.0/lib/spelling-text-buffer-adapter.c new/libspelling-0.2.1/lib/spelling-text-buffer-adapter.c --- old/libspelling-0.2.0/lib/spelling-text-buffer-adapter.c 2023-09-17 01:16:16.000000000 +0200 +++ new/libspelling-0.2.1/lib/spelling-text-buffer-adapter.c 2024-03-04 01:39:28.000000000 +0100 @@ -63,11 +63,14 @@ GtkSourceBuffer *buffer; SpellingChecker *checker; CjhTextRegion *region; - GtkTextTag *tag; GtkTextTag *no_spell_check_tag; GMenuModel *menu; char *word_under_cursor; + /* Borrowed pointers */ + GtkTextMark *insert_mark; + GtkTextTag *tag; + guint cursor_position; guint incoming_cursor_position; guint queued_cursor_moved; @@ -463,6 +466,8 @@ g_set_weak_pointer (&self->buffer, buffer); + self->insert_mark = gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (buffer)); + g_signal_group_set_target (self->buffer_signals, buffer); gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (buffer), &begin, &end); @@ -755,15 +760,19 @@ static void spelling_text_buffer_adapter_cursor_moved (SpellingTextBufferAdapter *self, - guint position) + GtkSourceBuffer *buffer) { - g_return_if_fail (SPELLING_IS_TEXT_BUFFER_ADAPTER (self)); - g_return_if_fail (self->buffer != NULL); + GtkTextIter iter; + + g_assert (SPELLING_IS_TEXT_BUFFER_ADAPTER (self)); + g_assert (GTK_SOURCE_IS_BUFFER (buffer)); if (!self->enabled) return; - self->incoming_cursor_position = position; + gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (buffer), &iter, self->insert_mark); + self->incoming_cursor_position = gtk_text_iter_get_offset (&iter); + g_clear_handle_id (&self->queued_cursor_moved, g_source_remove); self->queued_cursor_moved = g_timeout_add_full (G_PRIORITY_LOW, INVALIDATE_DELAY_MSECS, @@ -777,6 +786,9 @@ { SpellingTextBufferAdapter *self = (SpellingTextBufferAdapter *)object; + self->tag = NULL; + self->insert_mark = NULL; + g_clear_pointer (&self->word_under_cursor, g_free); g_clear_object (&self->checker); g_clear_object (&self->no_spell_check_tag); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.2.0/meson.build new/libspelling-0.2.1/meson.build --- old/libspelling-0.2.0/meson.build 2023-09-17 01:16:16.000000000 +0200 +++ new/libspelling-0.2.1/meson.build 2024-03-04 01:39:28.000000000 +0100 @@ -1,5 +1,5 @@ project('libspelling', 'c', - version: '0.2.0', + version: '0.2.1', meson_version: '>= 0.62.0', default_options: [ 'warning_level=2', 'werror=false', 'c_std=gnu11', ], ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.2.0/testsuite/test-cursor.c new/libspelling-0.2.1/testsuite/test-cursor.c --- old/libspelling-0.2.0/testsuite/test-cursor.c 2023-09-17 01:16:16.000000000 +0200 +++ new/libspelling-0.2.1/testsuite/test-cursor.c 2024-03-04 01:39:28.000000000 +0100 @@ -1,21 +1,21 @@ -/* test-spell-cursor.c +/* test-cursor.c * * Copyright 2021-2023 Christian Hergert <cherg...@redhat.com> * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * This file is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your option) + * any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This file is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. * - * SPDX-License-Identifier: GPL-3.0-or-later + * SPDX-License-Identifier: LGPL-3.0-or-later */ #include "config.h"