summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-02-28 14:31:36 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-02-28 16:34:00 -0500
commit9e0c471b03c9c19e6f664ecacd17f2776f2004c6 (patch)
tree5f86c7276f4d76aaa6c0748f3d3a0db18346b5c7 /examples
parentdc282991c6611a77f0f1049750c3fd7b6d085bb3 (diff)
downloadgtk+-9e0c471b03c9c19e6f664ecacd17f2776f2004c6.tar.gz
entry, spin button: Drop redundant API
Avoid duplicating GtkEditable APIs. Port existing users.
Diffstat (limited to 'examples')
-rw-r--r--examples/application10/exampleappwin.c4
-rw-r--r--examples/application7/exampleappwin.c2
-rw-r--r--examples/application8/exampleappwin.c4
-rw-r--r--examples/application9/exampleappwin.c4
-rw-r--r--examples/bp/bloatpad.c4
5 files changed, 9 insertions, 9 deletions
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);