[grilo] test-ui: make metadata cells editable



commit ee0e6a573eca3d429c24880c48ed805f70a8aebb
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Tue Feb 1 15:17:42 2011 +0000

    test-ui: make metadata cells editable
    
    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 288a934..0c91f56 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -1572,7 +1572,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);



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