Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package fcitx5-gtk for openSUSE:Factory checked in at 2024-02-05 22:02:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fcitx5-gtk (Old) and /work/SRC/openSUSE:Factory/.fcitx5-gtk.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fcitx5-gtk" Mon Feb 5 22:02:25 2024 rev:12 rq:1144307 version:5.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/fcitx5-gtk/fcitx5-gtk.changes 2023-08-21 11:44:59.483620993 +0200 +++ /work/SRC/openSUSE:Factory/.fcitx5-gtk.new.1815/fcitx5-gtk.changes 2024-02-05 22:02:42.486284982 +0100 @@ -1,0 +2,6 @@ +Mon Feb 5 12:28:04 UTC 2024 - Marguerite Su <i...@marguerite.su> + +- update to 5.1.1 + * add delete surrounding to process batch + +------------------------------------------------------------------- Old: ---- fcitx5-gtk-5.1.0.tar.xz New: ---- fcitx5-gtk-5.1.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fcitx5-gtk.spec ++++++ --- /var/tmp/diff_new_pack.lUf9Pn/_old 2024-02-05 22:02:43.054305531 +0100 +++ /var/tmp/diff_new_pack.lUf9Pn/_new 2024-02-05 22:02:43.058305675 +0100 @@ -1,7 +1,7 @@ # # spec file for package fcitx5-gtk # -# 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,7 +17,7 @@ Name: fcitx5-gtk -Version: 5.1.0 +Version: 5.1.1 Release: 0 Summary: Gtk im module for fcitx5 and glib based dbus client library License: LGPL-2.1-or-later ++++++ fcitx5-gtk-5.1.0.tar.xz -> fcitx5-gtk-5.1.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-gtk-5.1.0/CMakeLists.txt new/fcitx5-gtk-5.1.1/CMakeLists.txt --- old/fcitx5-gtk-5.1.0/CMakeLists.txt 2023-08-14 19:44:39.366107000 +0200 +++ new/fcitx5-gtk-5.1.1/CMakeLists.txt 2024-01-02 18:34:40.665900700 +0100 @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.6) -project(fcitx5-gtk VERSION 5.1.0) +project(fcitx5-gtk VERSION 5.1.1) find_package(ECM REQUIRED 1.0.0) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-gtk-5.1.0/fcitx-gclient/fcitxgclient.c new/fcitx5-gtk-5.1.1/fcitx-gclient/fcitxgclient.c --- old/fcitx5-gtk-5.1.0/fcitx-gclient/fcitxgclient.c 2022-12-20 16:06:57.910911800 +0100 +++ new/fcitx5-gtk-5.1.1/fcitx-gclient/fcitxgclient.c 2024-01-02 18:34:40.889231000 +0100 @@ -182,7 +182,12 @@ }; // This need to kept in sync with dbusfrontend.cpp -enum { BATCHED_COMMIT_STRING = 0, BATCHED_PREEDIT, BATCHED_FORWARD_KEY }; +enum { + BATCHED_COMMIT_STRING = 0, + BATCHED_PREEDIT, + BATCHED_FORWARD_KEY, + BATCHED_DELETE_SURROUNDING +}; static guint signals[LAST_SIGNAL] = {0}; @@ -218,6 +223,8 @@ GVariant *parameters); static void _fcitx_g_client_handle_preedit(FcitxGClient *self, GVariant *parameters); +static void _fcitx_g_client_handle_delete_surrounding(FcitxGClient *self, + GVariant *parameters); static void fcitx_g_client_finalize(GObject *object); static void fcitx_g_client_dispose(GObject *object); @@ -605,6 +612,9 @@ case BATCHED_PREEDIT: _fcitx_g_client_handle_preedit(self, data); break; + case BATCHED_DELETE_SURROUNDING: + _fcitx_g_client_handle_delete_surrounding(self, data); + break; default: break; } @@ -992,6 +1002,20 @@ g_ptr_array_free(array, TRUE); } +static void _fcitx_g_client_handle_delete_surrounding(FcitxGClient *self, + GVariant *parameters) { + gint32 offset; + guint32 nchar; + if (g_strcmp0(g_variant_get_type_string(parameters), "iu") == 0) { + g_variant_get(parameters, "iu", &offset, &nchar); + } else if (g_strcmp0(g_variant_get_type_string(parameters), "(iu)") == 0) { + g_variant_get(parameters, "(iu)", &offset, &nchar); + } else { + return; + } + g_signal_emit(self, signals[DELETE_SURROUNDING_TEXT_SIGNAL], 0, offset, + nchar); +} static void _fcitx_g_client_g_signal(G_GNUC_UNUSED GDBusProxy *proxy, G_GNUC_UNUSED gchar *sender_name, gchar *signal_name, GVariant *parameters, @@ -1013,11 +1037,7 @@ } else if (g_strcmp0(signal_name, "ForwardKey") == 0) { _fcitx_g_client_handle_forward_key(user_data, parameters); } else if (g_strcmp0(signal_name, "DeleteSurroundingText") == 0) { - guint32 nchar; - gint32 offset; - g_variant_get(parameters, "(iu)", &offset, &nchar); - g_signal_emit(user_data, signals[DELETE_SURROUNDING_TEXT_SIGNAL], 0, - offset, nchar); + _fcitx_g_client_handle_delete_surrounding(user_data, parameters); } else if (g_strcmp0(signal_name, "UpdateFormattedPreedit") == 0) { _fcitx_g_client_handle_preedit(user_data, parameters); } else if (g_strcmp0(signal_name, "UpdateClientSideUI") == 0) {