defaultvalue test: ignore show-desktop

Ignore the "show-desktop" property on GtkPlacesSidebar for the
defaultvalue test.

Currently, "make check" is passing because it runs the test under a xvfb
with no XSETTINGS provider, so we see the Gtk default value.  No matter
what we set the default value to in Gtk, however, there will be some
desktop environment in which someone running the installed test outside
of an xvfb will get the wrong result.  Best to ignore it.

https://bugzilla.gnome.org/show_bug.cgi?id=712302
This commit is contained in:
Ryan Lortie 2013-11-15 09:32:19 -05:00 committed by Matthias Clasen
parent 21114071ec
commit ce2d9b430c

View File

@ -320,6 +320,11 @@ G_GNUC_END_IGNORE_DEPRECATIONS
strcmp (pspec->name, "resize-grip-visible") == 0)
continue;
/* show-desktop depends on desktop environment */
if (g_type_is_a (type, GTK_TYPE_PLACES_SIDEBAR) &&
strcmp (pspec->name, "show-desktop") == 0)
continue;
if (g_test_verbose ())
g_print ("Property %s.%s\n",
g_type_name (pspec->owner_type),