summaryrefslogtreecommitdiff
path: root/src/nautilus-switchable-navigation-bar.c
diff options
context:
space:
mode:
authorDarin Adler <darin@bentspoon.com>2002-03-07 19:36:18 +0000
committerDarin Adler <darin@src.gnome.org>2002-03-07 19:36:18 +0000
commit136742e4efa2af350b1303469b69113f39443490 (patch)
tree41e11442b391712ff49a2eee762f8ad22535c86a /src/nautilus-switchable-navigation-bar.c
parent6b5798037c6df519b12adb45ff919ea796856034 (diff)
downloadnautilus-136742e4efa2af350b1303469b69113f39443490.tar.gz
Because lots of recent bugs were due to "signal handler called after
* Tons of files: Because lots of recent bugs were due to "signal handler called after object gone" problems, switched many calls of g_signal_connect and g_signal_connect_swapped to use g_signal_connect_object instead. Also did other signal-related cleanup and changed some destroys to finalizes. * libnautilus/nautilus-view-standard-main.h: We no longer need to include nautilus-view.h in here. So include it in the files that use this instead. Did merges from stable branch: 2001-10-25 Darin Adler <darin@bentspoon.com> * libnautilus-private/nautilus-directory.c: (call_files_changed_common), (call_files_changed_free_list), (call_files_changed_unref_free_list), (nautilus_directory_notify_files_changed): Move call to nautilus_directory_add_file_to_work_queue into a better bottleneck; now it catches all the notify cases, not just changed. Also tell it to re-get top-left text and link info too when we get a changed notice. * src/file-manager/fm-directory-view.c: (queue_pending_files): Don't use the timeout (and the hysteresis) when queuing files once the initial directory load is complete. Doing this was causing delays processing changes that came in later, which we don't want. * src/nautilus-sidebar-title.c: (item_count_ready), (monitor_add), (update_all), (nautilus_sidebar_title_set_file): Monitor the directory count once we get it the first time. This makes sure that changes in the directory count get reflected in the sidebar without creating a race with the main view to see who calculates it first. 2001-10-25 Alex Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory.c (nautilus_directory_notify_files_changed): Call nautilus_directory_add_file_to_work_queue() when file_info is invalidated. Otherwise it will not be read again.
Diffstat (limited to 'src/nautilus-switchable-navigation-bar.c')
-rw-r--r--src/nautilus-switchable-navigation-bar.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/nautilus-switchable-navigation-bar.c b/src/nautilus-switchable-navigation-bar.c
index de2467bdb..fb64783d2 100644
--- a/src/nautilus-switchable-navigation-bar.c
+++ b/src/nautilus-switchable-navigation-bar.c
@@ -121,10 +121,8 @@ create_search_bar_if_non_existant (NautilusSwitchableNavigationBar *bar)
bar->details->search_bar = NAUTILUS_SWITCHABLE_SEARCH_BAR (nautilus_switchable_search_bar_new (bar->details->window));
- g_signal_connect_swapped (bar->details->search_bar,
- "location_changed",
- G_CALLBACK (nautilus_navigation_bar_location_changed),
- bar);
+ g_signal_connect_object (bar->details->search_bar, "location_changed",
+ G_CALLBACK (nautilus_navigation_bar_location_changed), bar, G_CONNECT_SWAPPED);
gtk_box_pack_start (GTK_BOX (bar->details->hbox), GTK_WIDGET (bar->details->search_bar), TRUE, TRUE, 0);
}
@@ -144,10 +142,8 @@ nautilus_switchable_navigation_bar_new (NautilusWindow *window)
switchable_navigation_bar->details->window = window;
switchable_navigation_bar->details->location_bar = NAUTILUS_LOCATION_BAR (nautilus_location_bar_new (window));
- g_signal_connect_swapped (switchable_navigation_bar->details->location_bar,
- "location_changed",
- G_CALLBACK (nautilus_navigation_bar_location_changed),
- bar);
+ g_signal_connect_object (switchable_navigation_bar->details->location_bar, "location_changed",
+ G_CALLBACK (nautilus_navigation_bar_location_changed), bar, G_CONNECT_SWAPPED);
gtk_box_pack_start (GTK_BOX (switchable_navigation_bar->details->hbox),
GTK_WIDGET (switchable_navigation_bar->details->location_bar), TRUE, TRUE, 0);