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 /gtk/gtkprintbackend.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 'gtk/gtkprintbackend.c')
-rw-r--r-- | gtk/gtkprintbackend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c index 1dd0284329..33c419228a 100644 --- a/gtk/gtkprintbackend.c +++ b/gtk/gtkprintbackend.c @@ -591,7 +591,7 @@ store_entry (GtkEntry *entry, g_free (*data); } - *data = g_strdup (gtk_entry_get_text (entry)); + *data = g_strdup (gtk_editable_get_text (GTK_EDITABLE (entry))); } static void @@ -710,7 +710,7 @@ request_password (GtkPrintBackend *backend, focus = entry; if (ai_default[i] != NULL) - gtk_entry_set_text (GTK_ENTRY (entry), ai_default[i]); + gtk_editable_set_text (GTK_EDITABLE (entry), ai_default[i]); gtk_entry_set_visibility (GTK_ENTRY (entry), ai_visible[i]); gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE); |