# HG changeset patch # User mow # Date 1244131636 0 # Node ID 922d7508febd3adbfeddaf301e36ef1d0088e17f # Parent b70603e03eb6770eab6b94cdfb52e00bd993517d Change the order of columns for editors dialogue diff -r b70603e03eb6 -r 922d7508febd src/desktop_file.c --- a/src/desktop_file.c Sun May 31 13:32:09 2009 +0000 +++ b/src/desktop_file.c Thu Jun 04 16:07:16 2009 +0000 @@ -485,13 +485,13 @@ gtk_tree_view_set_enable_search(GTK_TREE_VIEW(ewl->view), FALSE); column = gtk_tree_view_column_new(); - gtk_tree_view_column_set_title(column, _("Name")); + gtk_tree_view_column_set_title(column, _("Desktop file")); gtk_tree_view_column_set_resizable(column, TRUE); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_column_pack_start(column, renderer, FALSE); - gtk_tree_view_column_add_attribute(column, renderer, "text", DESKTOP_FILE_COLUMN_NAME); + gtk_tree_view_column_add_attribute(column, renderer, "text", DESKTOP_FILE_COLUMN_KEY); gtk_tree_view_append_column(GTK_TREE_VIEW(ewl->view), column); - gtk_tree_view_column_set_sort_column_id(column, DESKTOP_FILE_COLUMN_NAME); + gtk_tree_view_column_set_sort_column_id(column, DESKTOP_FILE_COLUMN_KEY); column = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(column, _("Hidden")); @@ -508,13 +508,13 @@ gtk_tree_view_column_set_alignment(column, 0.5); column = gtk_tree_view_column_new(); - gtk_tree_view_column_set_title(column, _("Desktop file")); + gtk_tree_view_column_set_title(column, _("Name")); gtk_tree_view_column_set_resizable(column, TRUE); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_column_pack_start(column, renderer, FALSE); - gtk_tree_view_column_add_attribute(column, renderer, "text", DESKTOP_FILE_COLUMN_KEY); + gtk_tree_view_column_add_attribute(column, renderer, "text", DESKTOP_FILE_COLUMN_NAME); gtk_tree_view_append_column(GTK_TREE_VIEW(ewl->view), column); - gtk_tree_view_column_set_sort_column_id(column, DESKTOP_FILE_COLUMN_KEY); + gtk_tree_view_column_set_sort_column_id(column, DESKTOP_FILE_COLUMN_NAME); column = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(column, _("Path"));