Don't use UNIX-specific printer objects on non-UNIX

https://bugzilla.gnome.org/show_bug.cgi?id=704173
This commit is contained in:
Erik van Pienbroek 2013-07-13 22:54:09 +02:00 committed by Chun-wei Fan
parent 7f01641280
commit 82e5e4b50e

View File

@ -75,9 +75,11 @@ test_type (gconstpointer data)
return;
/* These can't be freely constructed/destroyed */
if (g_type_is_a (type, GTK_TYPE_PRINT_JOB) ||
g_type_is_a (type, GTK_TYPE_APPLICATION) ||
if (g_type_is_a (type, GTK_TYPE_APPLICATION) ||
g_type_is_a (type, GDK_TYPE_PIXBUF_LOADER) ||
#ifdef G_OS_UNIX
g_type_is_a (type, GTK_TYPE_PRINT_JOB) ||
#endif
g_type_is_a (type, gdk_pixbuf_simple_anim_iter_get_type ()) ||
g_str_equal (g_type_name (type), "GdkX11DeviceManagerXI2") ||
g_str_equal (g_type_name (type), "GdkX11Display") ||
@ -227,10 +229,12 @@ G_GNUC_END_IGNORE_DEPRECATIONS
strcmp (pspec->name, "job-name") == 0)
continue;
#ifdef G_OS_UNIX
if (g_type_is_a (type, GTK_TYPE_PRINT_UNIX_DIALOG) &&
(strcmp (pspec->name, "page-setup") == 0 ||
strcmp (pspec->name, "print-settings") == 0))
continue;
#endif
if (g_type_is_a (type, GTK_TYPE_PROGRESS_BAR) &&
strcmp (pspec->name, "adjustment") == 0)