From 9e0c471b03c9c19e6f664ecacd17f2776f2004c6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 28 Feb 2019 14:31:36 -0500 Subject: entry, spin button: Drop redundant API Avoid duplicating GtkEditable APIs. Port existing users. --- examples/application10/exampleappwin.c | 4 ++-- examples/application7/exampleappwin.c | 2 +- examples/application8/exampleappwin.c | 4 ++-- examples/application9/exampleappwin.c | 4 ++-- examples/bp/bloatpad.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'examples') diff --git a/examples/application10/exampleappwin.c b/examples/application10/exampleappwin.c index f1edb4360e..31f527b128 100644 --- a/examples/application10/exampleappwin.c +++ b/examples/application10/exampleappwin.c @@ -31,7 +31,7 @@ search_text_changed (GtkEntry *entry, GtkTextBuffer *buffer; GtkTextIter start, match_start, match_end; - text = gtk_entry_get_text (entry); + text = gtk_editable_get_text (GTK_EDITABLE (entry)); if (text[0] == '\0') return; @@ -58,7 +58,7 @@ find_word (GtkButton *button, const gchar *word; word = gtk_button_get_label (button); - gtk_entry_set_text (GTK_ENTRY (win->searchentry), word); + gtk_editable_set_text (GTK_EDITABLE (win->searchentry), word); } static void diff --git a/examples/application7/exampleappwin.c b/examples/application7/exampleappwin.c index 3dc75e5beb..d4a671cc45 100644 --- a/examples/application7/exampleappwin.c +++ b/examples/application7/exampleappwin.c @@ -25,7 +25,7 @@ search_text_changed (GtkEntry *entry, GtkTextBuffer *buffer; GtkTextIter start, match_start, match_end; - text = gtk_entry_get_text (entry); + text = gtk_editable_get_text (GTK_EDITABLE (entry)); if (text[0] == '\0') return; diff --git a/examples/application8/exampleappwin.c b/examples/application8/exampleappwin.c index e679129b27..f662b67cbb 100644 --- a/examples/application8/exampleappwin.c +++ b/examples/application8/exampleappwin.c @@ -29,7 +29,7 @@ search_text_changed (GtkEntry *entry, GtkTextBuffer *buffer; GtkTextIter start, match_start, match_end; - text = gtk_entry_get_text (entry); + text = gtk_editable_get_text (GTK_EDITABLE (entry)); if (text[0] == '\0') return; @@ -56,7 +56,7 @@ find_word (GtkButton *button, const gchar *word; word = gtk_button_get_label (button); - gtk_entry_set_text (GTK_ENTRY (win->searchentry), word); + gtk_editable_set_text (GTK_EDITABLE (win->searchentry), word); } static void diff --git a/examples/application9/exampleappwin.c b/examples/application9/exampleappwin.c index e029c61042..0394904d76 100644 --- a/examples/application9/exampleappwin.c +++ b/examples/application9/exampleappwin.c @@ -31,7 +31,7 @@ search_text_changed (GtkEntry *entry, GtkTextBuffer *buffer; GtkTextIter start, match_start, match_end; - text = gtk_entry_get_text (entry); + text = gtk_editable_get_text (GTK_EDITABLE (entry)); if (text[0] == '\0') return; @@ -58,7 +58,7 @@ find_word (GtkButton *button, const gchar *word; word = gtk_button_get_label (button); - gtk_entry_set_text (GTK_ENTRY (win->searchentry), word); + gtk_editable_set_text (GTK_EDITABLE (win->searchentry), word); } static void diff --git a/examples/bp/bloatpad.c b/examples/bp/bloatpad.c index 78ca433add..0cac3c7111 100644 --- a/examples/bp/bloatpad.c +++ b/examples/bp/bloatpad.c @@ -364,7 +364,7 @@ combo_changed (GtkComboBox *combo, str = g_strjoinv (",", accels); g_strfreev (accels); - gtk_entry_set_text (entry, str); + gtk_editable_set_text (GTK_EDITABLE (entry), str); } static void @@ -389,7 +389,7 @@ response (GtkDialog *dialog, if (!action) return; - str = gtk_entry_get_text (entry); + str = gtk_editable_get_text (GTK_EDITABLE (entry)); accels = g_strsplit (str, ",", 0); gtk_application_set_accels_for_action (gtk_window_get_application (user_data), action, (const gchar **) accels); -- cgit v1.2.1