[gnome-builder] greeter: implement search text for greeter rows



commit 04605e8e534fbc15b45c3f2eb185c0341574921a
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 21 18:32:25 2019 -0800

    greeter: implement search text for greeter rows

 src/libide/greeter/ide-greeter-row.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/greeter/ide-greeter-row.c b/src/libide/greeter/ide-greeter-row.c
index 1447e3fa9..3908b379e 100644
--- a/src/libide/greeter/ide-greeter-row.c
+++ b/src/libide/greeter/ide-greeter-row.c
@@ -373,9 +373,16 @@ ide_greeter_row_set_project_info (IdeGreeterRow  *self,
 gchar *
 ide_greeter_row_get_search_text (IdeGreeterRow *self)
 {
+  IdeGreeterRowPrivate *priv = ide_greeter_row_get_instance_private (self);
+  GString *str;
+
   g_return_val_if_fail (IDE_IS_GREETER_ROW (self), NULL);
 
-  return NULL;
+  str = g_string_new (NULL);
+  g_string_append_printf (str, "%s ", gtk_label_get_text (priv->title) ?: "");
+  g_string_append_printf (str, "%s ", gtk_label_get_text (priv->subtitle) ?: "");
+
+  return g_string_free (g_steal_pointer (&str), FALSE);
 }
 
 gboolean


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