[gtk/wip/carlosg/fix-search-entry: 5/5] inspector: Update callback to GtkText shuffling
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/fix-search-entry: 5/5] inspector: Update callback to GtkText shuffling
- Date: Wed, 20 Feb 2019 15:43:10 +0000 (UTC)
commit b741d36cedbf57f02879aac9f0ea57f16fb2b6f2
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Feb 20 16:41:39 2019 +0100
inspector: Update callback to GtkText shuffling
Instead of trying to access the GtkText, use GtkEditable API.
gtk/inspector/resource-list.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/inspector/resource-list.c b/gtk/inspector/resource-list.c
index b1d99223fd..3dd38a8d52 100644
--- a/gtk/inspector/resource-list.c
+++ b/gtk/inspector/resource-list.c
@@ -508,7 +508,7 @@ on_search_changed (GtkSearchEntry *entry,
gint length;
gboolean backwards;
- length = strlen (gtk_entry_get_text (GTK_ENTRY (entry)));
+ length = strlen (gtk_editable_get_text (GTK_EDITABLE (entry)));
backwards = length < sl->priv->search_length;
sl->priv->search_length = length;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]