[glade] GladeInspector: skip unnamed widgets in search



commit 5a13b8982c2516134cca5bd63ce948b3093b97aa
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Thu Jan 28 07:19:00 2016 -0300

    GladeInspector: skip unnamed widgets in search

 gladeui/glade-inspector.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gladeui/glade-inspector.c b/gladeui/glade-inspector.c
index bac825d..7d1100d 100644
--- a/gladeui/glade-inspector.c
+++ b/gladeui/glade-inspector.c
@@ -311,6 +311,12 @@ search_common_matches (GtkTreeModel    *model,
 
   gtk_tree_model_get (model, iter, GLADE_PROJECT_MODEL_COLUMN_NAME, &row_text, -1);
 
+  if (g_str_has_prefix (row_text, GLADE_UNNAMED_PREFIX))
+    {
+      g_free (row_text);
+      return FALSE;
+    }
+
   match = (strncmp (data->text, row_text, strlen (data->text)) == 0);
 
   if (match)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]