diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-02-01 16:13:04 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-02-03 19:38:35 -0500 |
commit | a0f89473830575ae39a568608bc58f3f92c6f4a4 (patch) | |
tree | 8d61b5e12c8dc49e42c9f542b77736e5e1176884 /test | |
parent | 2a86f1c60ba847951145ea3570bcf4e7a26a18f1 (diff) | |
download | nautilus-a0f89473830575ae39a568608bc58f3f92c6f4a4.tar.gz |
progress-info: split progress information notify into a new manager
Diffstat (limited to 'test')
-rw-r--r-- | test/test-copy.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test-copy.c b/test/test-copy.c index c71cda907..f21a40385 100644 --- a/test/test-copy.c +++ b/test/test-copy.c @@ -2,6 +2,7 @@ #include <libnautilus-private/nautilus-file-operations.h> #include <libnautilus-private/nautilus-progress-info.h> +#include <libnautilus-private/nautilus-progress-info-manager.h> static void copy_done (GHashTable *debuting_uris, gpointer data) @@ -43,6 +44,7 @@ main (int argc, char* argv[]) GFile *source; int i; GList *infos; + NautilusProgressInfoManager *manager; NautilusProgressInfo *progress_info; g_thread_init (NULL); @@ -67,15 +69,18 @@ main (int argc, char* argv[]) gtk_widget_show (window); + manager = nautilus_progress_info_manager_new (); + nautilus_file_operations_copy (sources, NULL /* GArray *relative_item_points */, dest, GTK_WINDOW (window), copy_done, NULL); - - infos = nautilus_get_all_progress_info (); + + infos = nautilus_progress_info_manager_get_all_infos (manager); if (infos == NULL) { + g_object_unref (manager); return 0; } @@ -86,6 +91,8 @@ main (int argc, char* argv[]) g_signal_connect (progress_info, "finished", (GCallback)finished_cb, NULL); gtk_main (); + + g_object_unref (manager); return 0; } |