aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtkutil.h
diff options
context:
space:
mode:
authorRobert Pluim2018-11-27 09:39:30 +0100
committerRobert Pluim2018-11-27 09:41:59 +0100
commita291f624289bd2009b7fa230d62b5940e0484c83 (patch)
treedf21d9b3189008676d61904c70e572411f72b946 /src/gtkutil.h
parentf0531b8e64250414baf1c0d2dde3fbfc55a748a0 (diff)
downloademacs-a291f624289bd2009b7fa230d62b5940e0484c83.tar.gz
emacs-a291f624289bd2009b7fa230d62b5940e0484c83.zip
Don't call xwidget functions until GTK has been initialized
Follow up fix to Bug#33294. * src/gtkutil.c: Define xg_gtk_initialized. (xg_initialize): Set it when GTK has finished initializing. * src/gtkutil.h: Declare xg_gtk_initialized. * src/xwidget.c (Fmake_xwidget): Error out if GTK has not been initialized. (xwidget_init_view): Likewise.
Diffstat (limited to 'src/gtkutil.h')
-rw-r--r--src/gtkutil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h
index 7dcd549f5c0..3b074073e44 100644
--- a/src/gtkutil.h
+++ b/src/gtkutil.h
@@ -202,5 +202,6 @@ extern void xg_initialize (void);
202 to indicate that the callback should do nothing. */ 202 to indicate that the callback should do nothing. */
203extern bool xg_ignore_gtk_scrollbar; 203extern bool xg_ignore_gtk_scrollbar;
204 204
205extern bool xg_gtk_initialized;
205#endif /* USE_GTK */ 206#endif /* USE_GTK */
206#endif /* GTKUTIL_H */ 207#endif /* GTKUTIL_H */