]> Dogcows Code - chaz/tint2/commitdiff
panel switcher : sorted by name
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 4 May 2010 18:47:34 +0000 (18:47 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 4 May 2010 18:47:34 +0000 (18:47 +0000)
src/tint2conf/theme_view.c

index b6715c203716fed95a6d8e42eda5cdd67c3ef1dc..8cce3f83ea53154ffe2c5e50e94ca0273037b247 100644 (file)
@@ -15,9 +15,9 @@ GtkCellRenderer *g_renderer;
 
 GtkWidget *create_view()
 {
-       GtkTreeViewColumn   *col;
-       GtkCellRenderer     *renderer;
-       GtkWidget           *view;
+       GtkTreeViewColumn *col;
+       GtkCellRenderer *renderer;
+       GtkWidget  *view;
 
        g_store = gtk_list_store_new(NB_COL, G_TYPE_STRING, GDK_TYPE_PIXBUF);
 
@@ -46,6 +46,9 @@ GtkWidget *create_view()
        gtk_tree_view_column_add_attribute(col, g_renderer, "pixbuf", COL_SNAPSHOT);
        gtk_tree_view_append_column(GTK_TREE_VIEW(view),col);
 
+       GtkTreeSortable *sortable;
+       sortable = GTK_TREE_SORTABLE(g_store);
+       gtk_tree_sortable_set_sort_column_id(sortable, COL_THEME_FILE, GTK_SORT_ASCENDING);
        return view;
 }
 
This page took 0.023933 seconds and 4 git commands to generate.