Added GtkAdjustment helper accessors for value/upper/lower/page size/page increment to encapsulate GTK3 accessors and GTK2 struct fields.

Updated xtext adjustment logic to use the helpers in adjustment updates and rendering paths, eliminating direct field access in scroll/render flows.
This commit is contained in:
deepend committed 2026-01-30 07:15:06 -07:00
1 parent 3806b33aab
commit f6613cbad1
2 files changed
+206 -128

No files matched your search

+4
View File
@@ -128,7 +128,11 @@ typedef struct {
struct _GtkXText
{
#if HAVE_GTK3
GtkWidget parent_instance;
#else
GtkWidget widget;
#endif
xtext_buffer *buffer;
xtext_buffer *orig_buffer;