diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c index 0c9b51337..961f2dd7d 100644 --- a/thunar/thunar-shortcuts-model.c +++ b/thunar/thunar-shortcuts-model.c @@ -1131,6 +1131,7 @@ thunar_shortcuts_model_add_shortcut_with_path (ThunarShortcutsModel *model, _thunar_return_if_fail (shortcut->file == NULL || THUNAR_IS_FILE (shortcut->file)); /* we want to stay informed about changes to the file */ +#if 0 if (G_LIKELY (shortcut->file != NULL)) { /* watch the file for changes */ @@ -1142,6 +1143,7 @@ thunar_shortcuts_model_add_shortcut_with_path (ThunarShortcutsModel *model, g_signal_connect (G_OBJECT (shortcut->file), "destroy", G_CALLBACK (thunar_shortcuts_model_file_destroy), model); } +#endif if (path == NULL) { @@ -1655,6 +1657,7 @@ static void thunar_shortcut_free (ThunarShortcut *shortcut, ThunarShortcutsModel *model) { +#if 0 if (G_LIKELY (shortcut->file != NULL)) { /* drop the file watch */ @@ -1666,6 +1669,7 @@ thunar_shortcut_free (ThunarShortcut *shortcut, 0, NULL, NULL, model); g_object_unref (shortcut->file); } +#endif if (G_LIKELY (shortcut->device != NULL)) g_object_unref (shortcut->device); diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c index df24b900d..b101f3051 100644 --- a/thunar/thunar-window.c +++ b/thunar/thunar-window.c @@ -2071,6 +2071,7 @@ thunar_window_bookmark_release_file (gpointer data) { ThunarFile *file = THUNAR_FILE (data); +#if 0 /* stop watching */ thunar_file_unwatch (file); @@ -2080,6 +2081,7 @@ thunar_window_bookmark_release_file (gpointer data) 0, NULL, G_CALLBACK (thunar_window_bookmark_changed), NULL); +#endif g_object_unref (file); } @@ -2143,6 +2145,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS g_object_set_data_full (G_OBJECT (action), I_("thunar-file"), file, thunar_window_bookmark_release_file); +#if 0 /* watch the file */ thunar_file_watch (file); @@ -2150,6 +2153,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS G_CALLBACK (thunar_window_bookmark_changed), window); g_signal_connect_swapped (G_OBJECT (file), "changed", G_CALLBACK (thunar_window_bookmark_changed), window); +#endif } else {