Author: post
Date: 2010-09-19 18:42:49 +0200 (Sun, 19 Sep 2010)
New Revision: 3537

Modified:
   trunk/src/rs-store.c
Log:
Apparently it works better to scroll to the icon before selecting it - don't 
ask why ;)

Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c        2010-09-19 15:17:04 UTC (rev 3536)
+++ trunk/src/rs-store.c        2010-09-19 16:42:49 UTC (rev 3537)
@@ -1385,13 +1385,13 @@
                GtkTreePath *iconpath = 
gtk_tree_model_filter_convert_child_path_to_path(GTK_TREE_MODEL_FILTER(model), 
path);
                gtk_tree_path_free(path);
 
-               /* 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);
 
+               /* Select the icon */
+               
gtk_icon_view_select_path(GTK_ICON_VIEW(store->current_iconview), iconpath);
+
                /* 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

Reply via email to