[Rawstudio-commit] r2056 - trunk/src

Anders Kvist anders at kvistmail.dk
Tue Sep 30 21:36:13 CEST 2008


Author: akv
Date: 2008-09-30 21:36:13 +0200 (Tue, 30 Sep 2008)
New Revision: 2056

Modified:
   trunk/src/conf_interface.h
   trunk/src/rs-store.c
Log:
Remember sort method.

Modified: trunk/src/conf_interface.h
===================================================================
--- trunk/src/conf_interface.h	2008-09-30 19:15:11 UTC (rev 2055)
+++ trunk/src/conf_interface.h	2008-09-30 19:36:13 UTC (rev 2056)
@@ -74,6 +74,7 @@
 #define CONF_TOOLBOX_WIDTH "toolbox_width"
 #define CONF_SPLIT_CONTINUOUS "split_continuous"
 #define CONF_LAST_PRIORITY_PAGE "last_priority_page"
+#define CONF_STORE_SORT_METHOD "store_sort_method"
 
 #define DEFAULT_CONF_EXPORT_DIRECTORY "exports/"
 #define DEFAULT_CONF_EXPORT_FILENAME "%f_%2c"

Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c	2008-09-30 19:15:11 UTC (rev 2055)
+++ trunk/src/rs-store.c	2008-09-30 19:36:13 UTC (rev 2056)
@@ -317,7 +317,9 @@
 	gtk_box_pack_start(GTK_BOX (hbox), GTK_WIDGET(store->notebook), TRUE, TRUE, 0);
 
 	store->last_path = NULL;
-	rs_store_set_sort_method(store, RS_STORE_SORT_BY_NAME);
+	gint sort_method = RS_STORE_SORT_BY_NAME;
+	rs_conf_get_integer(CONF_STORE_SORT_METHOD, &sort_method);
+	rs_store_set_sort_method(store, sort_method);
 	store->tooltip_text = g_string_new("...");
 	store->tooltip_last_path = NULL;
 }
@@ -1619,6 +1621,7 @@
 	g_assert(RS_IS_STORE(store));
 
 	store->sort_method = sort_method;
+	rs_conf_set_integer(CONF_STORE_SORT_METHOD, sort_method);
 
 	switch (sort_method)
 	{




More information about the Rawstudio-commit mailing list