diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-02-28 14:31:36 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-02-28 16:34:00 -0500 |
commit | 9e0c471b03c9c19e6f664ecacd17f2776f2004c6 (patch) | |
tree | 5f86c7276f4d76aaa6c0748f3d3a0db18346b5c7 /examples/application8/exampleappwin.c | |
parent | dc282991c6611a77f0f1049750c3fd7b6d085bb3 (diff) | |
download | gtk+-9e0c471b03c9c19e6f664ecacd17f2776f2004c6.tar.gz |
entry, spin button: Drop redundant API
Avoid duplicating GtkEditable APIs. Port existing users.
Diffstat (limited to 'examples/application8/exampleappwin.c')
-rw-r--r-- | examples/application8/exampleappwin.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |