[Gpa-commits] r1014 - branches/mo-branch/src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Jun 21 19:25:44 CEST 2009


Author: moritzs
Date: 2009-06-21 19:25:43 +0200 (Sun, 21 Jun 2009)
New Revision: 1014

Modified:
   branches/mo-branch/src/ChangeLog
   branches/mo-branch/src/keylist.c
Log:
2009-06-21  Moritz  <moritz at gnu.org>

	* keylist.c (setup_columns): Removed several calls to
	gtk_tree_view_column_set_sort_indicator.
	(gpa_keylist_init): Call gtk_tree_sortable_set_sort_column_id


Modified: branches/mo-branch/src/ChangeLog
===================================================================
--- branches/mo-branch/src/ChangeLog	2009-06-21 16:10:59 UTC (rev 1013)
+++ branches/mo-branch/src/ChangeLog	2009-06-21 17:25:43 UTC (rev 1014)
@@ -1,5 +1,9 @@
 2009-06-21  Moritz  <moritz at gnu.org>
 
+	* keylist.c (setup_columns): Removed several calls to
+	gtk_tree_view_column_set_sort_indicator.
+	(gpa_keylist_init): Call gtk_tree_sortable_set_sort_column_id.
+
 	* gpa-key-window.c, gpa-key-window.h: New files.
 	* keymanager.c (key_manager_key_listed): Call
 	gpa_keylist_update_key_window.

Modified: branches/mo-branch/src/keylist.c
===================================================================
--- branches/mo-branch/src/keylist.c	2009-06-21 16:10:59 UTC (rev 1013)
+++ branches/mo-branch/src/keylist.c	2009-06-21 17:25:43 UTC (rev 1014)
@@ -318,6 +318,9 @@
   selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (list));
   gtk_tree_selection_set_mode (selection, GTK_SELECTION_MULTIPLE);
 
+  gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (store),
+					GPA_KEYLIST_COLUMN_USERID,
+					GTK_SORT_ASCENDING);
 
   /* Add support for key windows, created through a double click on a
      row in the key list. */
@@ -672,7 +675,6 @@
       gtk_tree_view_append_column (GTK_TREE_VIEW (keylist), column);
       gtk_tree_view_column_set_sort_column_id 
         (column, GPA_KEYLIST_COLUMN_HAS_SECRET);
-      gtk_tree_view_column_set_sort_indicator (column, TRUE);
     }
 
   renderer = gtk_cell_renderer_text_new ();
@@ -692,7 +694,6 @@
      _("The key ID is a short number to identify a certificate."));
   gtk_tree_view_append_column (GTK_TREE_VIEW (keylist), column);
   gtk_tree_view_column_set_sort_column_id (column, GPA_KEYLIST_COLUMN_KEYID);
-  gtk_tree_view_column_set_sort_indicator (column, TRUE);
 
 
   if (detailed)
@@ -706,7 +707,6 @@
       gtk_tree_view_append_column (GTK_TREE_VIEW (keylist), column);
       gtk_tree_view_column_set_sort_column_id
         (column, GPA_KEYLIST_COLUMN_EXPIRY_TS);
-      gtk_tree_view_column_set_sort_indicator (column, TRUE);
 
       renderer = gtk_cell_renderer_text_new ();
       column = gtk_tree_view_column_new_with_attributes 
@@ -719,7 +719,6 @@
       gtk_tree_view_append_column (GTK_TREE_VIEW (keylist), column);
       gtk_tree_view_column_set_sort_column_id 
         (column, GPA_KEYLIST_COLUMN_OWNERTRUST_VALUE);
-      gtk_tree_view_column_set_sort_indicator (column, TRUE);
 
       renderer = gtk_cell_renderer_text_new ();
       column = gtk_tree_view_column_new_with_attributes
@@ -732,7 +731,6 @@
       gtk_tree_view_append_column (GTK_TREE_VIEW (keylist), column);
       gtk_tree_view_column_set_sort_column_id 
         (column, GPA_KEYLIST_COLUMN_VALIDITY_VALUE);
-      gtk_tree_view_column_set_sort_indicator (column, TRUE);
     }
 
   renderer = gtk_cell_renderer_text_new ();
@@ -744,7 +742,6 @@
        " of the certificate."));
   gtk_tree_view_append_column (GTK_TREE_VIEW (keylist), column);
   gtk_tree_view_column_set_sort_column_id (column, GPA_KEYLIST_COLUMN_USERID);
-  gtk_tree_view_column_set_sort_indicator (column, TRUE);
 }
 
 



More information about the Gpa-commits mailing list