From: Po Lu Date: Mon, 6 Dec 2021 05:43:23 +0000 (+0800) Subject: Fix child frame crash on pgtk X-Git-Tag: emacs-29.0.90~3612^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7314c12e64ef5b185e3fd52d8dc1111eb730bdad;p=emacs.git Fix child frame crash on pgtk * src/gtkutil.c (xg_check_special_colors): Use `FRAME_WIDGET' on PGTK. --- diff --git a/src/gtkutil.c b/src/gtkutil.c index d872d393caf..225984af41a 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -684,8 +684,13 @@ xg_check_special_colors (struct frame *f, block_input (); { #ifdef HAVE_GTK3 +#ifndef HAVE_PGTK GtkStyleContext *gsty = gtk_widget_get_style_context (FRAME_GTK_OUTER_WIDGET (f)); +#else + GtkStyleContext *gsty + = gtk_widget_get_style_context (FRAME_WIDGET (f)); +#endif GdkRGBA col; char buf[sizeof "rgb://rrrr/gggg/bbbb"]; int state = GTK_STATE_FLAG_SELECTED|GTK_STATE_FLAG_FOCUSED;