summaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-rw-r--r--test/test-nautilus-preferences-change.c4
-rw-r--r--test/test-nautilus-wrap-table.c10
-rw-r--r--test/test.c6
3 files changed, 10 insertions, 10 deletions
diff --git a/test/test-nautilus-preferences-change.c b/test/test-nautilus-preferences-change.c
index 122250f6a..305fc7d7a 100644
--- a/test/test-nautilus-preferences-change.c
+++ b/test/test-nautilus-preferences-change.c
@@ -40,8 +40,8 @@ picker_new (const char *name,
string_picker = eel_string_picker_new ();
eel_caption_set_title_label (EEL_CAPTION (string_picker), name);
- g_signal_connect (string_picker, "changed", G_CALLBACK (int_picker_changed_callback),
- (gpointer) name);
+ g_signal_connect (string_picker, "changed",
+ G_CALLBACK (int_picker_changed_callback), (gpointer) name);
eel_string_picker_set_string_list (EEL_STRING_PICKER (string_picker), entries);
eel_string_picker_set_selected_string_index (EEL_STRING_PICKER (string_picker),
diff --git a/test/test-nautilus-wrap-table.c b/test/test-nautilus-wrap-table.c
index a62e398f5..aacee3a47 100644
--- a/test/test-nautilus-wrap-table.c
+++ b/test/test-nautilus-wrap-table.c
@@ -40,14 +40,16 @@ main (int argc, char* argv[])
gtk_widget_show (scroller);
+#if 0
/* Get rid of default lowered shadow appearance.
* This must be done after the widget is realized, due to
* an apparent bug in gtk_viewport_set_shadow_type.
*/
-// g_signal_connect (GTK_BIN (scroller->child),
-// "realize",
-// remove_default_viewport_shadow,
-// NULL);
+ g_signal_connect (GTK_BIN (scroller->child),
+ "realize",
+ remove_default_viewport_shadow,
+ NULL);
+#endif
/* Use nautilus_customization to make the emblem widgets */
diff --git a/test/test.c b/test/test.c
index 67104a03a..fc708e9d1 100644
--- a/test/test.c
+++ b/test/test.c
@@ -44,10 +44,8 @@ test_window_new (const char *title, guint border_width)
gtk_window_set_title (GTK_WINDOW (window), title);
}
- g_signal_connect (window,
- "delete_event",
- G_CALLBACK (test_delete_event),
- NULL);
+ g_signal_connect (window, "delete_event",
+ G_CALLBACK (test_delete_event), NULL);
gtk_container_set_border_width (GTK_CONTAINER (window), border_width);