[gtk+] Don't use UNIX-specific printer objects on non-UNIX
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use UNIX-specific printer objects on non-UNIX
- Date: Wed, 31 Jul 2013 02:17:56 +0000 (UTC)
commit 82e5e4b50ef889877b08b56a31910e3b85531ea0
Author: Erik van Pienbroek <epienbro fedoraproject org>
Date: Sat Jul 13 22:54:09 2013 +0200
Don't use UNIX-specific printer objects on non-UNIX
https://bugzilla.gnome.org/show_bug.cgi?id=704173
testsuite/gtk/defaultvalue.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index f960964..1d9c2af 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]