I simply created a function read_current_scope which is similar to read_current_word, and gets the scope of the word the cursor is on:
ScopeA::ScopeB::Function
it will return ScopeA::ScopeB
Then I used the function in editor_show_calltip where find_calltips is called. To find_calltips I added an argument const gchar *scope to send the value over. Then, find_calltips calls the function tm_workspace_find which already had an option for scope. So I simply passed in the scope to that function, so now when typing in a scope, all functions will display properly.
<img src="http://i.imgur.com/IT5Qczd.png"></img>
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1176
-- Commit Summary --
* Added read_current_scope function which reads the current scope at the cursor, and added support for scoped function calltips in editor_show_calltip and find_callip * Added read_current_scope function which reads the current scope at the cursor, and added support for scoped function calltips in editor_show_calltip and find_callip
-- File Changes --
M src/editor.c (72)
-- Patch Links --
https://github.com/geany/geany/pull/1176.patch https://github.com/geany/geany/pull/1176.diff