[anjuta] symbol-db: emit db-connected when db is connected && with tables created.
- From: Massimo Cora' <mcora src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: emit db-connected when db is connected && with tables created.
- Date: Thu, 6 Jan 2011 01:30:19 +0000 (UTC)
commit 8f76aedad66b47a1bb4b9fcfc04ba0a7ad5ae044
Author: Massimo Corà <mcora src gnome org>
Date: Thu Jan 6 02:19:52 2011 +0100
symbol-db: emit db-connected when db is connected && with tables created.
plugins/symbol-db/symbol-db-engine-core.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-engine-core.c b/plugins/symbol-db/symbol-db-engine-core.c
index 577d8d0..d6e0ae3 100644
--- a/plugins/symbol-db/symbol-db-engine-core.c
+++ b/plugins/symbol-db/symbol-db-engine-core.c
@@ -2297,7 +2297,6 @@ sdb_engine_connect_to_db (SymbolDBEngine * dbe, const gchar *cnc_string)
}
DEBUG_PRINT ("Connected to database %s", cnc_string);
- g_signal_emit_by_name (dbe, "db-connected", NULL);
return TRUE;
}
@@ -2619,6 +2618,11 @@ symbol_db_engine_open_db (SymbolDBEngine * dbe, const gchar * base_db_path,
g_free (cnc_string);
g_free (db_file);
+
+ /* we're now able to emit the db-connected signal: tables should be created
+ * and libgda should be connected to an usable db.
+ */
+ g_signal_emit_by_name (dbe, "db-connected", NULL);
return ret_status;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]