dded GTK3 draw handling while keeping GTK2 expose handling wrapped under #if !HAVE_GTK3 for the spell entry widget.

Updated gtk_entry_find_position to use GTK3-safe layout offsets and cursor position APIs while preserving GTK2-only field access behind #if !HAVE_GTK3.
This commit is contained in:
2026-01-31 16:22:35 -07:00
parent e44e801e3a
commit d8a8e6ce73
4 changed files with 61 additions and 4 deletions

View File

@@ -55,8 +55,16 @@ endif
zoitechat_gtk_deps += gtk_dep
if gtk_dep.get_pkgconfig_variable('target') == 'x11'
zoitechat_gtk_deps += dependency('x11')
if get_option('gtk3') and host_machine.system() != 'windows'
gdk_x11_dep = dependency('gdk-x11-3.0', required: false)
if gdk_x11_dep.found()
zoitechat_gtk_deps += gdk_x11_dep
endif
x11_dep = dependency('x11', required: false)
if x11_dep.found()
zoitechat_gtk_deps += x11_dep
endif
endif
zoitechat_gtk_ldflags = []