fix build with gcc 2, and move setting the sort column somewhere sensible

2007-03-05  Jens Granseuer  <jensgr@gmx.net>

	* gnome-mouse-properties.c: (populate_tree_model), (setup_dialog): fix
	build with gcc 2, and move setting the sort column somewhere sensible

svn path=/trunk/; revision=7364
This commit is contained in:
Jens Granseuer 2007-03-05 19:26:18 +00:00 committed by Jens Granseuer
parent 451b91d284
commit 8b90d02157
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-03-05 Jens Granseuer <jensgr@gmx.net>
* gnome-mouse-properties.c: (populate_tree_model), (setup_dialog): fix
build with gcc 2, and move setting the sort column somewhere sensible
2007-03-04 Thomas Wood <thos@gnome.org>
Patch by: Thomas Zajic <zlatko@gmx.at>

View file

@ -672,7 +672,6 @@ populate_tree_model(GtkTreeModelSort* model, GtkTreeSelection* selection) {
gboolean has_default = FALSE;
GtkTreeIter iter;
gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE (model), 1, GTK_SORT_ASCENDING);
GConfClient* client = gconf_client_get_default();
GtkListStore* store = GTK_LIST_STORE(gtk_tree_model_sort_get_model(model));
gchar* current_theme = gconf_client_get_string(client, CURSOR_THEME_KEY, NULL);
@ -914,6 +913,7 @@ setup_dialog (GladeXML *dialog, GConfChangeSet *changeset)
"Name", gtk_cell_renderer_text_new (),
"markup", COLUMN_TEXT,
NULL);
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (model), 1, GTK_SORT_ASCENDING);
/* Add the cursors */
populate_tree_model(GTK_TREE_MODEL_SORT(model), selection);