Commit ea91e79e authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

keep the current folder visible after showing the file properties

parent be1bab85
......@@ -4220,8 +4220,16 @@ _gth_browser_load_file (GthBrowser *browser,
return;
}
else if (! GTK_WIDGET_VISIBLE (browser->priv->file_properties)) {
GtkTreePath *path;
gtk_paned_set_position (GTK_PANED (browser->priv->browser_sidebar), browser->priv->browser_sidebar->allocation.height / 2);
gtk_widget_show (browser->priv->file_properties);
path = gth_folder_tree_get_path (GTH_FOLDER_TREE (browser->priv->folder_tree), browser->priv->location->file);
if (path != NULL) {
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (browser->priv->folder_tree), path, NULL, TRUE, .25, .0);
gtk_tree_path_free (path);
}
}
g_object_ref (file_data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment