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

@@ -1015,7 +1015,7 @@ gtk_xtext_realize (GtkWidget * widget)
gdk_window_set_user_data (window, widget);
xtext->depth = gdk_window_get_visual (window)->depth;
xtext->depth = gdk_visual_get_depth (gdk_window_get_visual (window));
/* for the separator bar (light) */
xtext->light_gc.red = 1.0;