Call GTK functions only on GTK scrollbars
* src/gtkutil.c (xg_set_background_color) [USE_TOOLKIT_SCROLL_BARS]: Don't call GTK functions on non-GTK scrollbars (Bug#32975).
This commit is contained in:
parent
91c4c46fd5
commit
80e0bfa96d
1 changed files with 2 additions and 1 deletions
|
@ -1498,6 +1498,7 @@ xg_set_background_color (struct frame *f, unsigned long bg)
|
|||
block_input ();
|
||||
xg_set_widget_bg (f, FRAME_GTK_WIDGET (f), FRAME_BACKGROUND_PIXEL (f));
|
||||
|
||||
#ifdef USE_TOOLKIT_SCROLL_BARS
|
||||
Lisp_Object bar;
|
||||
for (bar = FRAME_SCROLL_BARS (f);
|
||||
!NILP (bar);
|
||||
|
@ -1508,7 +1509,7 @@ xg_set_background_color (struct frame *f, unsigned long bg)
|
|||
GtkWidget *webox = gtk_widget_get_parent (scrollbar);
|
||||
xg_set_widget_bg (f, webox, FRAME_BACKGROUND_PIXEL (f));
|
||||
}
|
||||
|
||||
#endif
|
||||
unblock_input ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue