]> Dogcows Code - chaz/tint2/blobdiff - src/tint2conf/theme_view.c
update my contribution to the company
[chaz/tint2] / src / tint2conf / theme_view.c
index b6715c203716fed95a6d8e42eda5cdd67c3ef1dc..5fd9187963083e3e44111b677e12bf26ed085804 100644 (file)
@@ -1,8 +1,24 @@
-
-#include <stdlib.h>
-#include <glib.h>
-#include <glib/gstdio.h>
-
+/**************************************************************************
+*
+* Tint2conf
+*
+* Copyright (C) 2009 Thierry lorthiois (lorthiois@bbsoft.fr) from Omega distribution
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License version 2
+* as published by the Free Software Foundation.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+**************************************************************************/
+
+
+#include "main.h"
 #include "theme_view.h"
 
 // The data columns that we export via the tree model interface
@@ -15,9 +31,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 +62,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.025102 seconds and 4 git commands to generate.