diff --git a/src/process-tree-view.c b/src/process-tree-view.c index 01be48b..956c709 100644 --- a/src/process-tree-view.c +++ b/src/process-tree-view.c @@ -744,7 +744,7 @@ xtm_process_tree_view_new (void) void xtm_process_tree_view_get_sort_column_id (XtmProcessTreeView *treeview, gint *sort_column_id, GtkSortType *sort_type) { - *sort_column_id = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (treeview->sort_column), "column-id")); + *sort_column_id = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (treeview->sort_column), "sort-column-id")); *sort_type = gtk_tree_view_column_get_sort_order (treeview->sort_column); } diff --git a/src/process-window.c b/src/process-window.c index 743cf70..c6bb1bb 100644 --- a/src/process-window.c +++ b/src/process-window.c @@ -228,11 +228,11 @@ xtm_process_window_finalize (GObject *object) if (GTK_IS_WINDOW (window->window)) { gint width, height, handle_position; - guint sort_column_id; + gint sort_column_id; GtkSortType sort_type; gtk_window_get_size (GTK_WINDOW (window->window), &width, &height); - xtm_process_tree_view_get_sort_column_id (XTM_PROCESS_TREE_VIEW (window->treeview), (gint*)&sort_column_id, &sort_type); + xtm_process_tree_view_get_sort_column_id (XTM_PROCESS_TREE_VIEW (window->treeview), &sort_column_id, &sort_type); handle_position = gtk_paned_get_position (GTK_PANED (window->vpaned));