Skip to content

Commit

Permalink
GeanyPrj: Don't mix declarations and code
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Jul 8, 2012
1 parent 162ccce commit acb5a51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions geanyprj/src/sidebar.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ static void update_popup_menu(G_GNUC_UNUSED GtkWidget *popup_menu)
gboolean cur_file_exists; gboolean cur_file_exists;
gboolean badd_file; gboolean badd_file;
GeanyDocument *doc; GeanyDocument *doc;
GtkTreeSelection *treesel;
gboolean bremove_file;


doc = document_get_current(); doc = document_get_current();


Expand All @@ -264,8 +266,8 @@ static void update_popup_menu(G_GNUC_UNUSED GtkWidget *popup_menu)
!g_current_project->regenerate && !g_current_project->regenerate &&
cur_file_exists && !g_hash_table_lookup(g_current_project->tags, doc->file_name); 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)); treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(file_view));
gboolean bremove_file = (g_current_project ? TRUE : FALSE) && bremove_file = (g_current_project ? TRUE : FALSE) &&
!g_current_project->regenerate && !g_current_project->regenerate &&
(gtk_tree_selection_count_selected_rows(treesel) > 0); (gtk_tree_selection_count_selected_rows(treesel) > 0);


Expand Down

0 comments on commit acb5a51

Please sign in to comment.