aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-31 01:35:09 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-31 01:35:09 +0800
commit196a4295bc265d873474b51a408a429359ec9e28 (patch)
treef38ea6659f77abefeba1570b45c0987c6f418fe9
parent23fc9da5e5d4addfd023988594c29512271009db (diff)
downloadgsoc2013-empathy-196a4295bc265d873474b51a408a429359ec9e28.tar
gsoc2013-empathy-196a4295bc265d873474b51a408a429359ec9e28.tar.gz
gsoc2013-empathy-196a4295bc265d873474b51a408a429359ec9e28.tar.bz2
gsoc2013-empathy-196a4295bc265d873474b51a408a429359ec9e28.tar.lz
gsoc2013-empathy-196a4295bc265d873474b51a408a429359ec9e28.tar.xz
gsoc2013-empathy-196a4295bc265d873474b51a408a429359ec9e28.tar.zst
gsoc2013-empathy-196a4295bc265d873474b51a408a429359ec9e28.zip
Use gtk_main_quit as the destroy callback.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2346 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r--tests/empetit.c10
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);