[Rawstudio-commit] r1998 - trunk/src
Anders Brander
anders at brander.dk
Mon Sep 15 19:08:35 CEST 2008
Author: abrander
Date: 2008-09-15 19:08:34 +0200 (Mon, 15 Sep 2008)
New Revision: 1998
Modified:
trunk/src/rs-dir-selector.c
Log:
Scroll to cell in rs_dir_selector_expand_path() even when widget is not realized yet.
Modified: trunk/src/rs-dir-selector.c
===================================================================
--- trunk/src/rs-dir-selector.c 2008-09-15 16:53:17 UTC (rev 1997)
+++ trunk/src/rs-dir-selector.c 2008-09-15 17:08:34 UTC (rev 1998)
@@ -372,6 +372,13 @@
if (GTK_WIDGET_REALIZED(GTK_WIDGET(selector)))
gtk_tree_view_scroll_to_cell(view, path, NULL, FALSE, 0.0, 0.0);
+ else
+ {
+ /* Save this, realize() will catch it later */
+ GtkTreeSelection *selection = gtk_tree_view_get_selection(view);
+ gtk_tree_model_get_iter(model, &iter, path);
+ gtk_tree_selection_select_iter(selection, &iter);
+ }
gtk_tree_path_free(path);
}
More information about the Rawstudio-commit
mailing list