notify test: Don't test object relying on dbus connections

Don't test types that rely on a pre-existing dbus session bus.

https://bugzilla.gnome.org/show_bug.cgi?id=749009
This commit is contained in:
Sjoerd Simons 2015-05-06 12:39:14 +02:00 committed by Matthias Clasen
parent 798789ee90
commit 9a7e69a990

View File

@ -403,6 +403,10 @@ test_type (gconstpointer data)
g_type_is_a (type, GTK_TYPE_FILE_CHOOSER_WIDGET) ||
g_type_is_a (type, GTK_TYPE_PLACES_SIDEBAR))
return;
/* These rely on a d-bus session bus */
if (g_type_is_a (type, GTK_TYPE_MOUNT_OPERATION))
return;
klass = g_type_class_ref (type);