summaryrefslogtreecommitdiff
path: root/src/gtkutil.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2013-03-26 16:34:45 +0100
committerJan Djärv <jan.h.d@swipnet.se>2013-03-26 16:34:45 +0100
commit54e9501092ec8a87991fb3da5b1732c12b43c61e (patch)
treefacdb0598844df3b6aab2d61b0e75becb772cea8 /src/gtkutil.c
parent9536ec028c24fbedf617b67e98a108504e5b1e73 (diff)
* gtkutil.c (style_changed_cb): Check if frame is live and an
X frame. Fixes: debbugs:14038
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 2bb4305e1d..595a7427c2 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1094,7 +1094,9 @@ style_changed_cb (GObject *go,
FOR_EACH_FRAME (rest, frame)
{
FRAME_PTR f = XFRAME (frame);
- if (FRAME_X_DISPLAY (f) == dpy)
+ if (FRAME_LIVE_P (f)
+ && FRAME_X_P (f)
+ && FRAME_X_DISPLAY (f) == dpy)
{
x_set_scroll_bar_default_width (f);
xg_frame_set_char_size (f, FRAME_COLS (f), FRAME_LINES (f));