Author: post
Date: 2010-09-19 16:06:36 +0200 (Sun, 19 Sep 2010)
New Revision: 3534
Modified:
trunk/src/rs-store.c
Log:
When automaticall selecting a single icon in the iconview, also make the
iconview scroll to the image.
Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c 2010-09-19 13:47:22 UTC (rev 3533)
+++ trunk/src/rs-store.c 2010-09-19 14:06:36 UTC (rev 3534)
@@ -1360,7 +1360,7 @@
* Select a image
* @param store A RSStore
* @param name The filename to select
- * @param deselect_others Should other images be de-selected.
+ * @param deselect_others Should other images be de-selected - this will also
make the iconview scroll to the new icon.
*/
gboolean
rs_store_set_selected_name(RSStore *store, const gchar *filename, gboolean
deselect_others)
@@ -1388,6 +1388,10 @@
/* Select the icon */
gtk_icon_view_select_path(GTK_ICON_VIEW(store->current_iconview), iconpath);
+ /* Scroll to the icon */
+ if (deselect_others)
+
gtk_icon_view_scroll_to_path(GTK_ICON_VIEW(store->current_iconview), iconpath,
FALSE, 0.0, 0.0);
+
/* Free the iconview path */
gtk_tree_path_free(iconpath);
ret = TRUE;
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit