Description: Fix FTBFS under GCC 15: rename bool parameter and fix return-mismatch
 Rename the `bool` parameter of gtkutils_toggle_button_with_signal_handler_blocked
 to `value` to avoid conflicting with the `bool` macro from <stdbool.h> (pulled in
 via GLib), which produced "two or more data types in declaration specifiers".
 Also switch g_return_if_fail to g_return_val_if_fail(..., NULL) inside
 remark_entry_find_completion_matches(), which returns GList *; GCC 15 promotes
 -Wreturn-mismatch to an error for a bare `return;` in a non-void function.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-04

--- loqui-0.7.0.orig/src/gtkutils.c
+++ loqui-0.7.0/src/gtkutils.c
@@ -102,10 +102,10 @@ gtkutils_add_label_spin_button(GtkWidget
 }
 
 void
-gtkutils_toggle_button_with_signal_handler_blocked(GtkToggleButton *button, guint signal_handler_id, gboolean bool)
+gtkutils_toggle_button_with_signal_handler_blocked(GtkToggleButton *button, guint signal_handler_id, gboolean value)
 {
 	g_signal_handler_block(button, signal_handler_id);
-	gtk_toggle_button_set_active(button, bool);
+	gtk_toggle_button_set_active(button, value);
 	g_signal_handler_unblock(button, signal_handler_id);
 }
 
--- loqui-0.7.0.orig/src/gtkutils.h
+++ loqui-0.7.0/src/gtkutils.h
@@ -37,7 +37,7 @@ void gtkutils_add_label_entry(GtkWidget
 void gtkutils_add_label_spin_button(GtkWidget *box, const gchar *label_text,
 			            GtkWidget **spin, gdouble min, gdouble max, gdouble step);
 
-void gtkutils_toggle_button_with_signal_handler_blocked(GtkToggleButton *button, guint signal_handler_id, gboolean bool);
+void gtkutils_toggle_button_with_signal_handler_blocked(GtkToggleButton *button, guint signal_handler_id, gboolean value);
 
 gchar *gtkutils_menu_translate(const gchar *path, gpointer data);
 
--- loqui-0.7.0.orig/src/remark_entry.c
+++ loqui-0.7.0/src/remark_entry.c
@@ -550,8 +550,8 @@ remark_entry_find_completion_matches(Rem
 	gchar *text;
 	int i;
 
-	g_return_if_fail(entry != NULL);
-	g_return_if_fail(IS_REMARK_ENTRY(entry));
+	g_return_val_if_fail(entry != NULL, NULL);
+	g_return_val_if_fail(IS_REMARK_ENTRY(entry), NULL);
 
 	priv = entry->priv;
 
