diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/file-manager/fm-directory-view.c | 9 |
2 files changed, 13 insertions, 4 deletions
@@ -1,3 +1,11 @@ +2000-08-09 Pavel Cisler <pavel@eazel.com> + + * src/file-manager/fm-directory-view.c: + (fm_directory_view_initialize): + John helped me fix a crasher in trash empty state notification -- + signals were being delivered to nonexistent objects, used + gtk_signal_connect_while_alive instead to fix things. + 2000-08-09 Gene Z. Ragan <gzr@eazel.com> * libnautilus-extensions/nautilus-file.c: diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index 7189d5dea..6d4c4ef6d 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -849,10 +849,11 @@ fm_directory_view_initialize (FMDirectoryView *directory_view) "zoom_to_fit", zoomable_zoom_to_fit_callback, directory_view); - gtk_signal_connect (GTK_OBJECT(nautilus_trash_monitor_get ()), - "trash_state_changed", - fm_directory_view_trash_state_changed_callback, - directory_view); + gtk_signal_connect_while_alive (GTK_OBJECT (nautilus_trash_monitor_get ()), + "trash_state_changed", + fm_directory_view_trash_state_changed_callback, + directory_view, + GTK_OBJECT (directory_view)); gtk_widget_show (GTK_WIDGET (directory_view)); |