[anjuta] anjuta: Remove custom filtering for debugging message as this is provided by GLib >= 2.32
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] anjuta: Remove custom filtering for debugging message as this is provided by GLib >= 2.32
- Date: Sun, 28 Oct 2012 16:31:25 +0000 (UTC)
commit 3499df61a7f617ed1d1d99786173b230c9dc3fe9
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sun Oct 28 15:44:08 2012 +0100
anjuta: Remove custom filtering for debugging message as this is provided by GLib >= 2.32
libanjuta/Makefile.am | 1 -
libanjuta/anjuta-debug.c | 109 -----------------------------------
libanjuta/anjuta-debug.h | 20 ++----
libanjuta/tests/Makefile.am | 3 +-
libanjuta/tests/anjuta-token-test.c | 2 -
plugins/am-project/projectparser.c | 1 -
src/main.c | 3 -
7 files changed, 8 insertions(+), 131 deletions(-)
---
diff --git a/libanjuta/Makefile.am b/libanjuta/Makefile.am
index e9f84da..4801567 100644
--- a/libanjuta/Makefile.am
+++ b/libanjuta/Makefile.am
@@ -90,7 +90,6 @@ libanjuta_3_la_SOURCES= \
anjuta-sync-command.h \
anjuta-async-notify.h \
anjuta-async-notify.c \
- anjuta-debug.c \
anjuta-debug.h \
anjuta-command-queue.c \
anjuta-command-queue.h \
diff --git a/libanjuta/anjuta-debug.h b/libanjuta/anjuta-debug.h
index 6292c9c..8675778 100644
--- a/libanjuta/anjuta-debug.h
+++ b/libanjuta/anjuta-debug.h
@@ -23,22 +23,18 @@
* @title: Debugging
* @short_description: Debug functions
* @see_also:
- * @stability: Unstable
+ * @stability: stable
* @include: libanjuta/anjuta-debug.h
*
- * Anjuta debug messages displayed with g_debug() can be filtered based on their
- * domain. By default if DEBUG is defiled, all message are displayed. If DEBUG is not
- * defined, all messages are hidden.
+ * Anjuta debug messages are displayed using the g_debug() function from GLib.
*
- * This behavior can be changed using the ANJUTA_LOG_DOMAINS environment
- * variable. If this variable is set to "all", all message are displayed whatever is the
- * value of DEBUG. Else you can set it to a list of domains separated by space to
- * display messages from these selected domains only.
- * If G_LOG_DOMAIN is undefined, it will match a domain named "NULL".
+ * To display debug messages, Anjuta must have been compiled with
+ * --enable-debug and the environment variable G_MESSAGES_DEBUG should be set
+ * to "all" or to a list separated by whitespace of domains to display.
*
* By example
*<programlisting>
- * ANJUTA_LOG_DOMAINS=Gtk Anjuta libanjuta-gdb
+ * G_MESSAGE_DEBUG=Gtk Anjuta libanjuta-gdb
*</programlisting>
* will display debug messages from Gtk, Anjuta and gdb plugin only.
*/
@@ -50,7 +46,7 @@
* DEBUG_PRINT:
*
* Equivalent to g_debug() showing the FILE, the LINE and the FUNC,
- * except it has only effect when DEBUG is defined. Used for printing debug
+ * except it has only effect when DEBUG is defined . Used for printing debug
* messages.
*/
#if defined (DEBUG)
@@ -63,6 +59,4 @@
#define DEBUG_PRINT(...)
#endif
-void anjuta_debug_init (void);
-
#endif /* _ANJUTA_DEBUG_H_ */
diff --git a/libanjuta/tests/Makefile.am b/libanjuta/tests/Makefile.am
index fa1466f..fb78a73 100644
--- a/libanjuta/tests/Makefile.am
+++ b/libanjuta/tests/Makefile.am
@@ -18,8 +18,7 @@ anjuta_token_test_CFLAGS = -g -O0 -fprofile-arcs -ftest-coverage
anjuta_token_test_LDADD = $(ANJUTA_LIBS)
anjuta_token_test_SOURCES = anjuta-token-test.c \
- ../anjuta-token.c \
- ../anjuta-debug.c
+ ../anjuta-token.c
CLEANFILES = anjuta_token_test-anjuta-token.gcno \
anjuta_token_test-anjuta-token-test.gcno \
diff --git a/libanjuta/tests/anjuta-token-test.c b/libanjuta/tests/anjuta-token-test.c
index 9b9832a..878d611 100644
--- a/libanjuta/tests/anjuta-token-test.c
+++ b/libanjuta/tests/anjuta-token-test.c
@@ -42,8 +42,6 @@ main(int argc, char *argv[])
/* Initialize program */
g_type_init ();
- anjuta_debug_init ();
-
ok = TRUE;
value = anjuta_token_evaluate (NULL);
diff --git a/plugins/am-project/projectparser.c b/plugins/am-project/projectparser.c
index 988d992..89644d1 100644
--- a/plugins/am-project/projectparser.c
+++ b/plugins/am-project/projectparser.c
@@ -513,7 +513,6 @@ main(int argc, char *argv[])
/* Initialize program */
g_type_init ();
- anjuta_debug_init ();
/* Parse options */
context = g_option_context_new ("list [args]");
diff --git a/src/main.c b/src/main.c
index 0a209bc..d54b97a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -160,9 +160,6 @@ main (int argc, char *argv[])
/* Initialize threads */
g_thread_init(NULL);
- /* Init debug helpers */
- anjuta_debug_init ();
-
/* Convert all file names to URI */
/* So an already existing instance of Anjuta having another current
* directory can still open the files */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]