[glide] Tree view for theme chooser shows names now



commit 3be3e12651037f620d1d2260a305d25dd1953787
Author: Robert Carr <racarr Valentine localdomain>
Date:   Tue May 25 14:52:06 2010 -0400

    Tree view for theme chooser shows names now

 libglide/glide-theme-chooser.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/libglide/glide-theme-chooser.c b/libglide/glide-theme-chooser.c
index 366a2be..b887c09 100644
--- a/libglide/glide-theme-chooser.c
+++ b/libglide/glide-theme-chooser.c
@@ -87,8 +87,6 @@ glide_theme_chooser_get_list_store (GlideThemeChooser *chooser)
       GlideTheme *theme = (GlideTheme *)t->data;
       const gchar *name;
       
-      if (!theme)
-	continue;
       name = glide_theme_get_name (theme);
       
       gtk_list_store_append (ret, &iter);
@@ -101,8 +99,16 @@ static GtkWidget *
 glide_theme_chooser_make_treeview (GlideThemeChooser *chooser)
 {
   GtkWidget *ret = gtk_tree_view_new ();
+  GtkCellRenderer *renderer;
+  
+  renderer = gtk_cell_renderer_text_new ();
+  gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (ret), -1,
+					       "Name", renderer,
+					       "text", 0, 
+					       NULL);
   
   gtk_tree_view_set_model (GTK_TREE_VIEW (ret), GTK_TREE_MODEL (glide_theme_chooser_get_list_store (chooser)));
+  
   return ret;
 }
 



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