[PATCH] grilo-test-ui: make metadata cells editable



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

So users can copy their content (useful for debug).

Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
 tools/grilo-test-ui/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 2947e13..147edfc 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -1570,7 +1570,8 @@ ui_setup (void)
   gchar *col_attributes_md[] = {"text", "text"};
   gint col_model_md[2] = { METADATA_MODEL_NAME, METADATA_MODEL_VALUE};
   col_renders_md[0] = gtk_cell_renderer_text_new ();
-  col_renders_md[1] = gtk_cell_renderer_text_new ();
+  col_renders_md[1] = g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
+				    "editable", TRUE, NULL);
   col = gtk_tree_view_column_new ();
   for (i=0; i<2; i++) {
     gtk_tree_view_column_pack_start (col, col_renders_md[i], FALSE);
-- 
1.7.2.3



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