[geany/geany] 5d94d1: Reload tooltip in the symbol tree also on tag update

Jiří Techet git-noreply at xxxxx
Sun May 3 17:36:26 UTC 2015


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Sun, 03 May 2015 17:36:26 UTC
Commit:      5d94d15976ab83f8bea2a6bda866d19a549f787e
             https://github.com/geany/geany/commit/5d94d15976ab83f8bea2a6bda866d19a549f787e

Log Message:
-----------
Reload tooltip in the symbol tree also on tag update

Because function return types are not used to determine tag equality,
we need to also update the tooltip of an existing tag otherwise the return
type doesn't get updated when changed.


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

Modified: src/symbols.c
6 lines changed, 5 insertions(+), 1 deletions(-)
===================================================================
@@ -1424,6 +1424,7 @@ static void update_tree_tags(GeanyDocument *doc, GList **tags)
 			{
 				const gchar *name;
 				const gchar *parent_name;
+				gchar *tooltip;
 				TMTag *found = found_item->data;
 
 				parent_name = get_parent_name(found, doc->file_type->id);
@@ -1432,12 +1433,15 @@ static void update_tree_tags(GeanyDocument *doc, GList **tags)
 					parent_name = NULL;
 
 				/* only update fields that (can) have changed (name that holds line
-				 * number, and the tag itself) */
+				 * number, tooltip, and the tag itself) */
 				name = get_symbol_name(doc, found, parent_name != NULL);
+				tooltip = get_symbol_tooltip(doc, found);
 				gtk_tree_store_set(store, &iter,
 						SYMBOLS_COLUMN_NAME, name,
+						SYMBOLS_COLUMN_TOOLTIP, tooltip,
 						SYMBOLS_COLUMN_TAG, found,
 						-1);
+				g_free(tooltip);
 
 				update_parents_table(parents_table, found, parent_name, &iter);
 



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


More information about the Commits mailing list