Author: post
Date: 2010-09-11 12:43:29 +0200 (Sat, 11 Sep 2010)
New Revision: 3522
Modified:
trunk/src/rs-store.c
trunk/src/rs-store.h
Log:
Enable function in rs-store to return current number of iconview colmuns.
Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c 2010-09-02 19:42:57 UTC (rev 3521)
+++ trunk/src/rs-store.c 2010-09-11 10:43:29 UTC (rev 3522)
@@ -2480,3 +2480,14 @@
for (n=0;n<NUM_VIEWS;n++)
gtk_icon_view_set_columns(GTK_ICON_VIEW (store->iconview[n]),
size);
}
+
+gint
+rs_store_get_iconview_size(RSStore *store)
+{
+ gint n;
+
+ for (n=0;n<NUM_VIEWS;n++)
+ n += MAX(0, gtk_icon_view_get_columns(GTK_ICON_VIEW
(store->iconview[n])));
+
+ return n;
+}
Modified: trunk/src/rs-store.h
===================================================================
--- trunk/src/rs-store.h 2010-09-02 19:42:57 UTC (rev 3521)
+++ trunk/src/rs-store.h 2010-09-11 10:43:29 UTC (rev 3522)
@@ -232,4 +232,7 @@
extern void
rs_store_set_iconview_size(RSStore *store, gint size);
+extern gint
+rs_store_get_iconview_size(RSStore *store);
+
#endif /* RS_STORE_H */
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit