W32: Link GTK to pangowin32
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sun, 4 Mar 2018 02:48:10 +0000 (02:48 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sun, 1 Apr 2018 10:35:02 +0000 (10:35 +0000)
Needed for pango_win32_font_logfont() from gtkimcontextime.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

gtk/meson.build
meson.build

index 45309bc1803bdf452eb6784a0579ea7f79f8bbcf..ff57cb4b6536b615885732d31e4eabf905e4ff2e 100644 (file)
@@ -894,7 +894,8 @@ endif
 
 if win32_enabled
   gtk_cargs += ['-DGTK_PRINT_BACKENDS="file,lpr"']
-  gtk_deps += [ giowin32_dep ]
+  gtk_deps += [ giowin32_dep, pangowin32_dep ]
+
   gtk_deps += [cc.find_library('advapi32'),
                cc.find_library('comctl32'),
                cc.find_library('dwmapi'),
index 9500d85d869c752a571146eb1e7e5798e4986820..e998d99314eed5d670c24bd275b10456a65c77d0 100644 (file)
@@ -349,6 +349,11 @@ if pangoft_dep.found()
   endif
 endif
 
+if win32_enabled
+  # for GTK_IM_CONTEXT_IME
+  pangowin32_dep  = dependency('pangowin32')
+endif
+
 pangocairo_dep = dependency('pangocairo', version: cairo_req,
                             fallback : ['pango', 'libpangocairo_dep'])
 pixbuf_dep     = dependency('gdk-pixbuf-2.0', version: gdk_pixbuf_req,