summaryrefslogtreecommitdiff
path: root/libnautilus
diff options
context:
space:
mode:
Diffstat (limited to 'libnautilus')
-rw-r--r--libnautilus/nautilus-clipboard.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libnautilus/nautilus-clipboard.c b/libnautilus/nautilus-clipboard.c
index 7e666ae8e..d76ae522b 100644
--- a/libnautilus/nautilus-clipboard.c
+++ b/libnautilus/nautilus-clipboard.c
@@ -123,8 +123,12 @@ select_all_callback (BonoboUIComponent *ui,
source = g_idle_source_new ();
g_source_set_callback (source, select_all_idle_callback, editable, NULL);
- g_signal_connect_object (editable, "destroy",
- G_CALLBACK (g_source_destroy), source, G_CONNECT_SWAPPED);
+ g_signal_connect_closure
+ (editable, "destroy",
+ g_cclosure_new_swap (
+ G_CALLBACK (g_source_destroy),
+ source, NULL),
+ 0);
g_source_attach (source, NULL);
g_source_unref (source);
}