summaryrefslogtreecommitdiff
path: root/gtk
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 /gtk
parenteaa77a475488d6a1ca364b848c72462446c0f6c2 (diff)
downloadgdk-pixbuf-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 'gtk')
-rw-r--r--gtk/.cvsignore2
-rw-r--r--gtk/simple.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/gtk/.cvsignore b/gtk/.cvsignore
index ba55e9b87..d410a2780 100644
--- a/gtk/.cvsignore
+++ b/gtk/.cvsignore
@@ -5,7 +5,7 @@ Makefile.in
_libs
.libs
libgtk-1.1.la
-testcalender
+testcalendar
testgtk
testinput
testrgb
diff --git a/gtk/simple.c b/gtk/simple.c
index f7a0822a0..450b3906c 100644
--- a/gtk/simple.c
+++ b/gtk/simple.c
@@ -19,6 +19,7 @@ main (int argc, char *argv[])
window = gtk_widget_new (gtk_window_get_type (),
"GtkObject::user_data", NULL,
+ "GtkObject::signal::destroy", gtk_main_quit, NULL,
"GtkWindow::type", GTK_WINDOW_TOPLEVEL,
"GtkWindow::title", "hello world",
"GtkWindow::allow_grow", FALSE,