From bcfff5e46934cb7bb9bae0730d557a3ed0faf163 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 18 May 2019 14:23:10 -0400 Subject: [PATCH] Drop gtk_button_clicked This is not an api we want to propagate anymore. If you need to, you can still emit the "clicked" action signal on a button using g_signal_emit_by_name. --- docs/reference/gtk/gtk4-sections.txt | 1 - gtk/gtkbutton.c | 14 -------------- gtk/gtkbutton.h | 2 -- 3 files changed, 17 deletions(-) diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index 93cfc5fc20..de3797b092 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -537,7 +537,6 @@ gtk_button_new gtk_button_new_with_label gtk_button_new_with_mnemonic gtk_button_new_from_icon_name -gtk_button_clicked gtk_button_set_relief gtk_button_get_relief gtk_button_get_label diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 7d20cb0873..f58517656e 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -646,20 +646,6 @@ gtk_button_new_with_mnemonic (const gchar *label) return g_object_new (GTK_TYPE_BUTTON, "label", label, "use-underline", TRUE, NULL); } -/** - * gtk_button_clicked: - * @button: The #GtkButton you want to send the signal to. - * - * Emits a #GtkButton::clicked signal to the given #GtkButton. - */ -void -gtk_button_clicked (GtkButton *button) -{ - g_return_if_fail (GTK_IS_BUTTON (button)); - - g_signal_emit (button, button_signals[CLICKED], 0); -} - /** * gtk_button_set_relief: * @button: The #GtkButton you want to set relief styles of diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h index 51f9bac0a7..c6a31b64ca 100644 --- a/gtk/gtkbutton.h +++ b/gtk/gtkbutton.h @@ -88,8 +88,6 @@ GDK_AVAILABLE_IN_ALL GtkWidget* gtk_button_new_from_icon_name (const gchar *icon_name); GDK_AVAILABLE_IN_ALL GtkWidget* gtk_button_new_with_mnemonic (const gchar *label); -GDK_AVAILABLE_IN_ALL -void gtk_button_clicked (GtkButton *button); GDK_AVAILABLE_IN_ALL void gtk_button_set_relief (GtkButton *button,