From: Robert Pluim Date: Thu, 11 Oct 2018 14:02:51 +0000 (+0200) Subject: Call GTK functions only on GTK scrollbars X-Git-Tag: emacs-26.1.90~86 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=80e0bfa;p=emacs.git 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). --- diff --git a/src/gtkutil.c b/src/gtkutil.c index 6b72671da91..5879ab683ea 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -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 (); } }