aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/test-minicard-label.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets/test-minicard-label.c')
-rw-r--r--addressbook/gui/widgets/test-minicard-label.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/addressbook/gui/widgets/test-minicard-label.c b/addressbook/gui/widgets/test-minicard-label.c
index cdbebe3160..c109497628 100644
--- a/addressbook/gui/widgets/test-minicard-label.c
+++ b/addressbook/gui/widgets/test-minicard-label.c
@@ -32,7 +32,7 @@
GnomeCanvasItem *label;
GnomeCanvasItem *rect;
-static void destroy_callback(GtkWidget *app, gpointer data)
+static void destroy_callback(gpointer data, GObject *where_object_was)
{
exit(0);
}
@@ -110,9 +110,7 @@ int main( int argc, char *argv[] )
/* Connect the signals */
- g_signal_connect( app, "destroy",
- G_CALLBACK( destroy_callback ),
- ( gpointer ) app );
+ g_object_weak_ref (app, destroy_callback, app);
g_signal_connect( canvas , "size_allocate",
G_CALLBACK ( allocate_callback ),