Branch: refs/heads/master Author: Pallai Roland pallair@magex.hu Committer: Pallai Roland pallair@magex.hu Date: Sat, 25 May 2013 21:30:01 UTC Commit: 22e87530f42c19a14e4790f3a8c7cc582cdf2c92 https://github.com/geany/geany-plugins/commit/22e87530f42c19a14e4790f3a8c7cc...
Log Message: ----------- treebrowser: Do not collapse expanded child of node when node gets selected by mouse click or cursor movement. It is not the expected behavior by users.
Modified Paths: -------------- treebrowser/src/treebrowser.c
Modified: treebrowser/src/treebrowser.c 17 files changed, 7 insertions(+), 10 deletions(-) =================================================================== @@ -1465,15 +1465,10 @@ enum if (uri == NULL) return;
- if (g_file_test(uri, G_FILE_TEST_EXISTS)) - { - if (g_file_test(uri, G_FILE_TEST_IS_DIR)) - treebrowser_browse(uri, &iter); - else - if (CONFIG_ONE_CLICK_CHDOC) - document_open_file(uri, FALSE, NULL, NULL); - } - else + if (g_file_test(uri, G_FILE_TEST_EXISTS)) { + if (!g_file_test(uri, G_FILE_TEST_IS_DIR) && CONFIG_ONE_CLICK_CHDOC) + document_open_file(uri, FALSE, NULL, NULL); + } else gtk_tree_store_iter_clear_nodes(&iter, TRUE);
g_free(uri); @@ -1498,8 +1493,10 @@ enum else if (gtk_tree_view_row_expanded(GTK_TREE_VIEW(widget), path)) gtk_tree_view_collapse_row(GTK_TREE_VIEW(widget), path); - else + else { + treebrowser_browse(uri, &iter); gtk_tree_view_expand_row(GTK_TREE_VIEW(widget), path, FALSE); + } else document_open_file(uri, FALSE, NULL, NULL);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org