diff options
author | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-10-03 04:11:09 +0000 |
---|---|---|
committer | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-10-03 04:11:09 +0000 |
commit | f82a3ba61e08c658c8982e017c70ec649e2e74f0 (patch) | |
tree | 273e3aa612f3d624cbfa889a0446e081a45a671c /test | |
parent | b501e415011f68daf0ce1d880c81af7cb8b9320d (diff) | |
download | nautilus-f82a3ba61e08c658c8982e017c70ec649e2e74f0.tar.gz |
Make the test program exit when its window is closed, so it can be
* test/test-nautilus-label.c: (delete_event), (main):
Make the test program exit when its window is closed, so it can be
profiled properly.
Diffstat (limited to 'test')
-rw-r--r-- | test/test-nautilus-label.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-nautilus-label.c b/test/test-nautilus-label.c index b9bcab921..289b369d4 100644 --- a/test/test-nautilus-label.c +++ b/test/test-nautilus-label.c @@ -722,6 +722,12 @@ create_drop_shadow_offset_frame (const char *title, return frame; } +static void +delete_event (GtkWidget *widget, GdkEvent *event, gpointer callback_data) +{ + gtk_main_quit (); +} + int main (int argc, char* argv[]) { @@ -747,6 +753,7 @@ main (int argc, char* argv[]) gnome_vfs_init (); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); + gtk_signal_connect (GTK_OBJECT (window), "delete_event", GTK_SIGNAL_FUNC (delete_event), NULL); gtk_window_set_title (GTK_WINDOW (window), "Label Test"); gtk_window_set_policy (GTK_WINDOW (window), TRUE, TRUE, FALSE); gtk_container_set_border_width (GTK_CONTAINER (window), 10); |