summaryrefslogtreecommitdiff
path: root/gdk/x11
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-06-06 00:56:00 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-06-06 00:56:00 +0000
commit3a917e9da7774112e07a6361bbef7424d380c6a7 (patch)
treeee8d3869a1befbc61e344e47bf3a6992163bb902 /gdk/x11
parenteaa77a475488d6a1ca364b848c72462446c0f6c2 (diff)
downloadgtk+-3a917e9da7774112e07a6361bbef7424d380c6a7.tar.gz
Add call to g_type_init() - we'll need this later, and this makes sure
Mon Jun 5 16:00:09 2000 Owen Taylor <otaylor@redhat.com> * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll need this later, and this makes sure that the atexit for glib gets called after that for GDK, so atexits are properly ordered for object leak checking. * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit(). * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call pango_x_shutdown_display() * gtk/simple.c (main): Close window on destroy.
Diffstat (limited to 'gdk/x11')
-rw-r--r--gdk/x11/gdkmain-x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 869d5b731b..7ce8a3b35d 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -563,6 +563,8 @@ gdk_beep (void)
void
gdk_windowing_exit (void)
{
+ pango_x_shutdown_display (gdk_display);
+
XCloseDisplay (gdk_display);
}