diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-01-31 01:35:09 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-31 01:35:09 +0800 |
commit | bb1f7649fc6cbba1722ff57fc2017810b2cf6578 (patch) | |
tree | f38ea6659f77abefeba1570b45c0987c6f418fe9 /tests/empetit.c | |
parent | c9e6a5c97c79068732bd696cc884524787e89a84 (diff) | |
download | gsoc2013-empathy-bb1f7649fc6cbba1722ff57fc2017810b2cf6578.tar gsoc2013-empathy-bb1f7649fc6cbba1722ff57fc2017810b2cf6578.tar.gz gsoc2013-empathy-bb1f7649fc6cbba1722ff57fc2017810b2cf6578.tar.bz2 gsoc2013-empathy-bb1f7649fc6cbba1722ff57fc2017810b2cf6578.tar.lz gsoc2013-empathy-bb1f7649fc6cbba1722ff57fc2017810b2cf6578.tar.xz gsoc2013-empathy-bb1f7649fc6cbba1722ff57fc2017810b2cf6578.tar.zst gsoc2013-empathy-bb1f7649fc6cbba1722ff57fc2017810b2cf6578.zip |
Use gtk_main_quit as the destroy callback.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=2346
Diffstat (limited to 'tests/empetit.c')
-rw-r--r-- | tests/empetit.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/empetit.c b/tests/empetit.c index 03c6ce6cc..5a091a75d 100644 --- a/tests/empetit.c +++ b/tests/empetit.c @@ -11,14 +11,6 @@ static GtkWidget *window = NULL; static void -destroy_cb (GtkWidget *widget, - gpointer data) -{ - gtk_main_quit (); -} - - -static void chat_cb (EmpathyDispatchOperation *dispatch, const GError *error, gpointer user_data) @@ -86,7 +78,7 @@ int main (int argc, window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (G_OBJECT (window), "destroy", - G_CALLBACK (destroy_cb), NULL); + gtk_main_quit, NULL); gtk_window_set_title (GTK_WINDOW (window),"Empetit"); gtk_container_set_border_width (GTK_CONTAINER (window), 5); gtk_container_add (GTK_CONTAINER (window), vbox); |