diff options
Diffstat (limited to 'addressbook/gui/widgets/test-reflow.c')
-rw-r--r-- | addressbook/gui/widgets/test-reflow.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/addressbook/gui/widgets/test-reflow.c b/addressbook/gui/widgets/test-reflow.c index 7f4325f130..66f003fe2c 100644 --- a/addressbook/gui/widgets/test-reflow.c +++ b/addressbook/gui/widgets/test-reflow.c @@ -65,7 +65,7 @@ GnomeCanvasItem *reflow; GnomeCanvasItem *rect; GtkAllocation last_alloc; -static void destroy_callback(GtkWidget *app, gpointer data) +static void destroy_callback(gpointer data, GObject *where_object_was) { exit(0); } @@ -183,9 +183,7 @@ int main( int argc, char *argv[] ) gnome_app_set_contents( GNOME_APP( app ), scrollframe ); /* 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 ), |