mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Guarded the GtkXText double-buffering toggle behind a GTK3 compile check and added a GTK3 render pipeline note in gtk_xtext_new
This commit is contained in:
@@ -682,7 +682,11 @@ gtk_xtext_new (const XTextColor *palette, int separator)
|
||||
xtext->buffer = gtk_xtext_buffer_new (xtext);
|
||||
xtext->orig_buffer = xtext->buffer;
|
||||
|
||||
#if !HAVE_GTK3
|
||||
gtk_widget_set_double_buffered (GTK_WIDGET (xtext), FALSE);
|
||||
#else
|
||||
/* GTK3 already uses the GTK render pipeline; no manual double-buffering toggle. */
|
||||
#endif
|
||||
gtk_xtext_set_palette (xtext, palette);
|
||||
|
||||
return GTK_WIDGET (xtext);
|
||||
|
||||
Reference in New Issue
Block a user