projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cdb33d
)
Only use gtk_print_backends_init() on UNIX
author
Руслан Ижбулатов
<lrn1986@gmail.com>
Sat, 24 Mar 2018 12:59:13 +0000
(12:59 +0000)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 28 Mar 2018 07:43:25 +0000
(15:43 +0800)
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
gtk/gtkmain.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmain.c
b/gtk/gtkmain.c
index 5971346a5a8aaa97d10a8e96806c558dab7accd6..36100c03f56b0d670714be9a1e7a620e7eecd063 100644
(file)
--- a/
gtk/gtkmain.c
+++ b/
gtk/gtkmain.c
@@
-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 ();