summaryrefslogtreecommitdiff
path: root/src/gtkutil.c
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2018-11-28 07:51:12 -0800
committerGlenn Morris <rgm@gnu.org>2018-11-28 07:51:12 -0800
commit415ef4a2b02dac17bf1bb962154633e671e561dd (patch)
tree029c1022ff672e6e4e4a2d44a8661a6543b130e5 /src/gtkutil.c
parent2c59cfa831f133ca75b513e05aaedeccfe410784 (diff)
parent74a3a795afbf092d4086e5ebb4dcf0254e7c8b46 (diff)
downloademacs-415ef4a2b02dac17bf1bb962154633e671e561dd.tar.gz
Merge from origin/emacs-26
74a3a79 (origin/emacs-26) Fix a typo in a doc string 911766d Minor markup fix in frames.texi 19ed1e9 * lisp/net/trampver.el (customize-package-emacs-version-alist... d7132ad * lisp/mh-e/mh-e.el (customize-package-emacs-version-alist): ... 5f39260 * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Pass format to m... a291f62 Don't call xwidget functions until GTK has been initialized f0531b8 Improve documentation of Ediff wordwise commands 2925ce5 Support Hunspell 1.7.0 in ispell.el 03bb7a8 Avoid clearing echo-area message by auto-save-visited-file-name
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index da4a0ae13df..382039c4047 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -147,6 +147,8 @@ struct xg_frame_tb_info
GtkTextDirection dir;
};
+bool xg_gtk_initialized; /* Used to make sure xwidget calls are possible */
+
static GtkWidget * xg_get_widget_from_map (ptrdiff_t idx);
@@ -5321,6 +5323,8 @@ xg_initialize (void)
#ifdef HAVE_FREETYPE
x_last_font_name = NULL;
#endif
+
+ xg_gtk_initialized = true;
}
#endif /* USE_GTK */