[Cxplorer-cvs 01101] CVS update: cxplorer/src

Back to archive index

Yasumichi Akahoshi yasum****@users*****
2005年 5月 10日 (火) 23:26:46 JST


Index: cxplorer/src/cxp-right-pane.c
diff -u cxplorer/src/cxp-right-pane.c:1.38 cxplorer/src/cxp-right-pane.c:1.39
--- cxplorer/src/cxp-right-pane.c:1.38	Sat May  7 22:52:40 2005
+++ cxplorer/src/cxp-right-pane.c	Tue May 10 23:26:45 2005
@@ -328,6 +328,7 @@
 						 cxp_right_pane_draw_icon,
 						 self, NULL);
 	renderer = gtk_cell_renderer_text_new ();
+	gtk_tree_view_column_set_sort_column_id (column, COL_DISP_NAME);
 	gtk_tree_view_column_pack_start (column, renderer, FALSE);
 	gtk_tree_view_column_set_attributes (column, renderer, "text",
 					     COL_DISP_NAME, NULL);
@@ -339,6 +340,7 @@
 							   renderer, "text",
 							   COL_FILE_SIZE, NULL);
 	gtk_tree_view_column_set_resizable (column, TRUE);
+	gtk_tree_view_column_set_sort_column_id (column, COL_FILE_SIZE);
 	gtk_tree_view_append_column (GTK_TREE_VIEW (file_list), column);
 
 	/* 3rd column */
@@ -355,11 +357,13 @@
 
 	/* 4th column */
 	renderer = gtk_cell_renderer_text_new ();
-	gtk_tree_view_insert_column_with_data_func (GTK_TREE_VIEW (file_list),
-						    -1, _("Update Time"),
-						    renderer,
-						    cxp_right_pane_draw_update_time,
-						    NULL, NULL);
+	column = gtk_tree_view_column_new_with_attributes (_("Update Time"),
+							   renderer, NULL);
+	gtk_tree_view_append_column (GTK_TREE_VIEW (file_list), column);
+	gtk_tree_view_column_set_sort_column_id (column, COL_UPDATE_TIME);
+	gtk_tree_view_column_set_cell_data_func (column, renderer,
+						 cxp_right_pane_draw_update_time,
+						 NULL, NULL);
 
 	g_object_unref (store);
 
Index: cxplorer/src/cxplorer-window.c
diff -u cxplorer/src/cxplorer-window.c:1.48 cxplorer/src/cxplorer-window.c:1.49
--- cxplorer/src/cxplorer-window.c:1.48	Tue May 10 00:25:32 2005
+++ cxplorer/src/cxplorer-window.c	Tue May 10 23:26:45 2005
@@ -347,7 +347,7 @@
 	};
 	guint idx;
 
-	for (idx=0; idx<2; idx++)
+	for (idx=0; idx<G_N_ELEMENTS(path); idx++)
 	{
 		if((menuitem = gtk_ui_manager_get_widget (private->ui_manager, path[idx])) != NULL)
 		{


Cxplorer-cvs メーリングリストの案内
Back to archive index