[anjuta-extras] scintilla: uses db-ready signal to populate typedefs lists.
- From: Massimo Cora' <mcora src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta-extras] scintilla: uses db-ready signal to populate typedefs lists.
- Date: Wed, 23 Jun 2010 22:36:08 +0000 (UTC)
commit 0367b629e12399f2642ffcf73ad0b08c2689fc47
Author: Massimo Corà <mcora src gnome org>
Date: Thu Jun 24 00:34:57 2010 +0200
scintilla: uses db-ready signal to populate typedefs lists.
plugins/scintilla/plugin.c | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/plugins/scintilla/plugin.c b/plugins/scintilla/plugin.c
index fa8a181..bd6937a 100644
--- a/plugins/scintilla/plugin.c
+++ b/plugins/scintilla/plugin.c
@@ -127,6 +127,14 @@ on_system_symbol_scanned (IAnjutaSymbolManager *manager, guint process, AnjutaSh
ianjuta_symbol_query_search_all (query_system, NULL);
}
+static void
+on_db_ready (IAnjutaSymbolManager *manager, gpointer user_data)
+{
+ /* Initialize type list */
+ on_project_symbol_scanned (manager, 0, NULL);
+ on_system_symbol_scanned (manager, 0, NULL);
+}
+
static void
on_style_button_clicked(GtkWidget* button, AnjutaPreferences* prefs)
{
@@ -188,13 +196,11 @@ activate_plugin (AnjutaPlugin *plugin)
/* Get notified when scan end, to update type list */
- g_signal_connect (G_OBJECT (manager), "prj_scan_end", G_CALLBACK (on_project_symbol_scanned), NULL);
- g_signal_connect (G_OBJECT (manager), "sys_scan_end", G_CALLBACK (on_system_symbol_scanned), NULL);
-
- /* Initialize type list */
- on_project_symbol_scanned (manager, 0, NULL);
- on_system_symbol_scanned (manager, 0, NULL);
+ g_signal_connect (G_OBJECT (manager), "prj-scan-end", G_CALLBACK (on_project_symbol_scanned), NULL);
+ g_signal_connect (G_OBJECT (manager), "sys-scan-end", G_CALLBACK (on_system_symbol_scanned), NULL);
+ g_signal_connect (G_OBJECT (manager), "db-ready", G_CALLBACK (on_db_ready), NULL);
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]