Only use gtk_print_backends_init() on UNIX

It's from gtkprintbackend.c, which is in gtk_unix_print_sources
source list and thus only available on os_unix only.

https://bugzilla.gnome.org/show_bug.cgi?id=773299
This commit is contained in:
Руслан Ижбулатов 2018-03-24 12:59:13 +00:00 committed by Chun-wei Fan
parent 5cdb33d1c4
commit 56782123d2

View File

@ -631,7 +631,9 @@ static void
default_display_notify_cb (GdkDisplayManager *dm)
{
debug_flags[0].display = gdk_display_get_default ();
#ifdef G_OS_UNIX
gtk_print_backends_init ();
#endif
gtk_im_modules_init ();
gtk_media_file_extension_init ();
_gtk_accessibility_init ();