[geany/geany-plugins] 34ed95: treebrowser: Don't try and pass a column ID as a column object

Colomban Wendling git-noreply at xxxxx
Mon Apr 6 14:18:20 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 06 Apr 2015 14:18:20 UTC
Commit:      34ed9595d3aedb4be5ce724e42313ece6370b224
             https://github.com/geany/geany-plugins/commit/34ed9595d3aedb4be5ce724e42313ece6370b224

Log Message:
-----------
treebrowser: Don't try and pass a column ID as a column object

This was not a real problem because the passed column ID was 0, so was
interpreted as NULL, which is a valid value, but it still wasn't right.


Modified Paths:
--------------
    treebrowser/src/treebrowser.c

Modified: treebrowser/src/treebrowser.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -708,7 +708,7 @@ treebrowser_search(gchar *uri, gpointer parent)
 			{
 				path = gtk_tree_model_get_path(GTK_TREE_MODEL(treestore), &iter);
 				gtk_tree_view_expand_to_path(GTK_TREE_VIEW(treeview), path);
-				gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(treeview), path, TREEBROWSER_COLUMN_ICON, FALSE, 0, 0);
+				gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(treeview), path, NULL, FALSE, 0, 0);
 				gtk_tree_view_set_cursor(GTK_TREE_VIEW(treeview), path, treeview_column_text, FALSE);
 				gtk_tree_path_free(path);
 				g_free(uri_current);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list