From 0ca03319bc1a69638f76c914fb6b86d142e88829 Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 3 Jul 2014 17:08:09 +0200 Subject: Use g_object_unref in callback for both Gtk+ versions --- src/themes/coco/coco-theme.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/themes/coco') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index 3d13f14..606101c 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -643,11 +643,7 @@ clear_notification_actions(GtkWindow *nw) gtk_widget_hide(windata->actions_box); gtk_container_foreach(GTK_CONTAINER(windata->actions_box), -#if GTK_CHECK_VERSION (3, 0, 0) (GtkCallback)g_object_unref, NULL); -#else - (GtkCallback)gtk_object_destroy, NULL); -#endif } /* Move notification window */ -- cgit v1.2.1