Branch: refs/heads/master Author: Colomban Wendling lists.ban@herbesfolles.org Committer: Colomban Wendling lists.ban@herbesfolles.org Date: Wed, 20 Jun 2012 20:39:39 Commit: badcfcf8d8f6e4f835dbb6641b061c89e2022ed6 https://github.com/geany/geany-plugins/commit/badcfcf8d8f6e4f835dbb6641b061c...
Log Message: ----------- Merge pull request #45 from frlan/treebrowser_c90_changes
A few fixes for TreeBrowser to follow C89 standard
Modified Paths: -------------- treebrowser/src/treebrowser.c
Modified: treebrowser/src/treebrowser.c 12 files changed, 6 insertions(+), 6 deletions(-) =================================================================== @@ -335,9 +335,9 @@ enum static gboolean check_hidden(const gchar *filename) { + gsize len; const gchar *base_name = NULL; base_name = g_path_get_basename(filename); - gsize len;
if (! NZV(base_name)) return FALSE; @@ -1005,14 +1005,14 @@ enum if (gtk_tree_selection_get_selected(selection, &model, &iter)) { gtk_tree_model_get(model, &iter, TREEBROWSER_COLUMN_URI, &uri, -1); - // If not a directory, find parent directory + /* If not a directory, find parent directory */ if (! g_file_test(uri, G_FILE_TEST_IS_DIR)) { path_parent = gtk_tree_model_get_path(GTK_TREE_MODEL(treestore), &iter); - // Set iter from parent_path + /* Set iter from parent_path */ if (gtk_tree_path_up(path_parent) && gtk_tree_model_get_iter(GTK_TREE_MODEL(treestore), &iter, path_parent)) - // Set URI from new iter + /* Set URI from new iter */ gtk_tree_model_get(model, &iter, TREEBROWSER_COLUMN_URI, &uri, -1); else refresh_root = TRUE; @@ -1392,13 +1392,13 @@ enum
if (event->button == 3) { - // Get tree path for row that was clicked + /* Get tree path for row that was clicked */ if (gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(treeview), (gint) event->x, (gint) event->y, &path, NULL, NULL, NULL)) { - // Unselect current selection; select clicked row from path + /* Unselect current selection; select clicked row from path */ gtk_tree_selection_unselect_all(selection); gtk_tree_selection_select_path(selection, path); gtk_tree_path_free(path);
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
plugins-commits@lists.geany.org