mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user