Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sat, 08 Feb 2014 09:23:30 UTC Commit: c4b0f0f74dc370ee43a14f76af3f4ba9fab48139 https://github.com/geany/geany/commit/c4b0f0f74dc370ee43a14f76af3f4ba9fab481...
Log Message: ----------- Add new symbol list category "Extern variables"
This is a requirement for an upcoming Python parser fix. This new category will be currently only used by Python, C and D parsers. Before this change, in C & D extern variables were sorted into the category "Other", now they have their own category.
Modified Paths: -------------- src/symbols.c
Modified: src/symbols.c 8 files changed, 8 insertions(+), 0 deletions(-) =================================================================== @@ -528,6 +528,7 @@ struct TreeviewSymbols GtkTreeIter tag_macro; GtkTreeIter tag_member; GtkTreeIter tag_variable; + GtkTreeIter tag_externvar; GtkTreeIter tag_namespace; GtkTreeIter tag_struct; GtkTreeIter tag_interface; @@ -545,6 +546,7 @@ static void init_tag_iters(void) tv_iters.tag_member.stamp = -1; tv_iters.tag_macro.stamp = -1; tv_iters.tag_variable.stamp = -1; + tv_iters.tag_externvar.stamp = -1; tv_iters.tag_namespace.stamp = -1; tv_iters.tag_struct.stamp = -1; tv_iters.tag_interface.stamp = -1; @@ -1036,6 +1038,7 @@ static void add_top_level_items(GeanyDocument *doc) } tag_list_add_groups(tag_store, &(tv_iters.tag_variable), _("Variables"), "classviewer-var", + &(tv_iters.tag_externvar), _("Extern Variables"), "classviewer-var", &(tv_iters.tag_other), _("Other"), "classviewer-other", NULL); } } @@ -1172,6 +1175,11 @@ static GtkTreeIter *get_tag_type_iter(TMTagType tag_type, filetype_id ft_id) iter = &tv_iters.tag_function; break; } + case tm_tag_externvar_t: + { + iter = &tv_iters.tag_externvar; + break; + } case tm_tag_macro_t: case tm_tag_macro_with_arg_t: {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).