diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2018-03-24 12:59:13 +0000 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2018-03-28 15:43:25 +0800 |
commit | 56782123d25056f44e1fa0f3332482bacc97308c (patch) | |
tree | ae5ec1d14aae05e2e652f91aff2c2b4f7955fa00 /gtk/gtkmain.c | |
parent | 5cdb33d1c4150768a7e808326f5e16f1cf0f953a (diff) | |
download | gtk+-56782123d25056f44e1fa0f3332482bacc97308c.tar.gz |
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
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 5971346a5a..36100c03f5 100644 --- 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 (); |