diff options
author | Ted Gould <ted@gould.cx> | 2011-06-20 16:43:41 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-06-20 16:43:41 -0500 |
commit | 0b1b3745b5a082c94e0b0b0548a9d068ba8645e5 (patch) | |
tree | 8c0da3872a68080a5ab5f8274e8961e26098123a /tests/test-gtk-parser.c | |
parent | 5e1cdbb204626572c4624420266bae4d85c4e027 (diff) | |
parent | 2f1adbf33420ba6c79a99938af18f9d7c4ec3484 (diff) | |
download | libdbusmenu-0b1b3745b5a082c94e0b0b0548a9d068ba8645e5.tar.gz libdbusmenu-0b1b3745b5a082c94e0b0b0548a9d068ba8645e5.tar.bz2 libdbusmenu-0b1b3745b5a082c94e0b0b0548a9d068ba8645e5.zip |
* New upstream release.
* Fixing visibility for Eclipse (LP: #770263 and LP: #618587)
* Unseting a GValue properly (LP: #785828)
* Memory leaks for GVariant usage (LP: #784890)
* Making GTK 3 default build
* Removing the SerializableMenuitem object
Diffstat (limited to 'tests/test-gtk-parser.c')
-rw-r--r-- | tests/test-gtk-parser.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test-gtk-parser.c b/tests/test-gtk-parser.c index b66b46a..87b0a7f 100644 --- a/tests/test-gtk-parser.c +++ b/tests/test-gtk-parser.c @@ -55,9 +55,23 @@ const gchar * test_parser_children_builder = "</object>" "</interface>"; +/* Checks the log level to let warnings not stop the program */ +static gboolean +test_parser_children_log_handler (const gchar * domain, GLogLevelFlags level, const gchar * message, gpointer user_data) +{ + if (level & (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_INFO | G_LOG_LEVEL_DEBUG)) { + return FALSE; + } + + return TRUE; +} + /* Ensure the parser can find children */ static void test_parser_children (void) { + /* Hide GTK errors */ + g_test_log_set_fatal_handler(test_parser_children_log_handler, NULL); + GtkBuilder * builder = gtk_builder_new(); g_assert(builder != NULL); |