[geany/geany-plugins] acb5a5: GeanyPrj: Don't mix declarations and code
Colomban Wendling
git-noreply at xxxxx
Sun Jul 8 16:28:58 UTC 2012
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sun, 08 Jul 2012 16:28:58
Commit: acb5a517c99e9a88c998e094f284fad915413a5f
https://github.com/geany/geany-plugins/commit/acb5a517c99e9a88c998e094f284fad915413a5f
Log Message:
-----------
GeanyPrj: Don't mix declarations and code
Modified Paths:
--------------
geanyprj/src/sidebar.c
Modified: geanyprj/src/sidebar.c
6 files changed, 4 insertions(+), 2 deletions(-)
===================================================================
@@ -255,6 +255,8 @@ static void update_popup_menu(G_GNUC_UNUSED GtkWidget *popup_menu)
gboolean cur_file_exists;
gboolean badd_file;
GeanyDocument *doc;
+ GtkTreeSelection *treesel;
+ gboolean bremove_file;
doc = document_get_current();
@@ -264,8 +266,8 @@ static void update_popup_menu(G_GNUC_UNUSED GtkWidget *popup_menu)
!g_current_project->regenerate &&
cur_file_exists && !g_hash_table_lookup(g_current_project->tags, doc->file_name);
- GtkTreeSelection *treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(file_view));
- gboolean bremove_file = (g_current_project ? TRUE : FALSE) &&
+ treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(file_view));
+ bremove_file = (g_current_project ? TRUE : FALSE) &&
!g_current_project->regenerate &&
(gtk_tree_selection_count_selected_rows(treesel) > 0);
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Plugins-Commits
mailing list