From: Matthias Clasen Date: Wed, 4 Jan 2023 12:31:49 +0000 (-0500) Subject: Deprecate gtk_toggle_button_toggled X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~8^2~104^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=918ff1d0f45c14ae6c40ccdef574b8b5a6cd5115;p=gtk4.git Deprecate gtk_toggle_button_toggled The function is documented as useless. --- diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index 80c0c3b04a..d8c41d58dc 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -426,7 +426,7 @@ gtk_toggle_button_set_active (GtkToggleButton *toggle_button, GTK_ACCESSIBLE_STATE_PRESSED, is_active, -1); - gtk_toggle_button_toggled (toggle_button); + g_signal_emit (toggle_button, toggle_button_signals[TOGGLED], 0); g_object_notify_by_pspec (G_OBJECT (toggle_button), toggle_button_props[PROP_ACTIVE]); } @@ -458,7 +458,7 @@ gtk_toggle_button_get_active (GtkToggleButton *toggle_button) * * Emits the ::toggled signal on the `GtkToggleButton`. * - * There is no good reason for an application ever to call this function. + * Deprecated: 4.10: There is no good reason for an application ever to call this function. */ void gtk_toggle_button_toggled (GtkToggleButton *toggle_button) diff --git a/gtk/gtktogglebutton.h b/gtk/gtktogglebutton.h index c0d6dd3421..8b7930fb4e 100644 --- a/gtk/gtktogglebutton.h +++ b/gtk/gtktogglebutton.h @@ -77,7 +77,7 @@ void gtk_toggle_button_set_active (GtkToggleButton *toggle_button, gboolean is_active); GDK_AVAILABLE_IN_ALL gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button); -GDK_AVAILABLE_IN_ALL +GDK_DEPRECATED_IN_4_10 void gtk_toggle_button_toggled (GtkToggleButton *toggle_button); GDK_AVAILABLE_IN_ALL void gtk_toggle_button_set_group (GtkToggleButton *toggle_button,