diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:56:03 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:56:03 +0000 |
commit | f7c6d4c150984aa28be2a8f983d7f1429b525c12 (patch) | |
tree | 825f95ccfc377313ea6afb15dda2e65b384cbc73 /programs | |
parent | df46bb0635c8a4cdf0db289d5d0b7e8416edd4ca (diff) | |
download | gvfs-f7c6d4c150984aa28be2a8f983d7f1429b525c12.tar.gz |
Rename g_file_get_for_XXX to g_file_new_for_XXX
Original git commit by Alexander Larsson <alexl@redhat.com> at 1188214830 +0200
svn path=/trunk/; revision=812
Diffstat (limited to 'programs')
-rw-r--r-- | programs/gvfs-cat.c | 2 | ||||
-rw-r--r-- | programs/gvfs-copy.c | 4 | ||||
-rw-r--r-- | programs/gvfs-info.c | 2 | ||||
-rw-r--r-- | programs/gvfs-ls.c | 4 | ||||
-rw-r--r-- | programs/gvfs-monitor-dir.c | 2 | ||||
-rw-r--r-- | programs/gvfs-monitor-file.c | 2 | ||||
-rw-r--r-- | programs/gvfs-mount.c | 2 | ||||
-rw-r--r-- | programs/gvfs-move.c | 4 | ||||
-rw-r--r-- | programs/gvfs-rm.c | 2 | ||||
-rw-r--r-- | programs/gvfs-save.c | 2 | ||||
-rw-r--r-- | programs/gvfs-trash.c | 2 |
11 files changed, 14 insertions, 14 deletions
diff --git a/programs/gvfs-cat.c b/programs/gvfs-cat.c index e62c9823..2f0925b1 100644 --- a/programs/gvfs-cat.c +++ b/programs/gvfs-cat.c @@ -95,7 +95,7 @@ main (int argc, char *argv[]) int i; for (i = 1; i < argc; i++) { - file = g_file_get_for_commandline_arg (argv[i]); + file = g_file_new_for_commandline_arg (argv[i]); cat (file); g_object_unref (file); } diff --git a/programs/gvfs-copy.c b/programs/gvfs-copy.c index b6218979..127b5f17 100644 --- a/programs/gvfs-copy.c +++ b/programs/gvfs-copy.c @@ -76,7 +76,7 @@ main (int argc, char *argv[]) return 1; } - dest = g_file_get_for_commandline_arg (argv[argc-1]); + dest = g_file_new_for_commandline_arg (argv[argc-1]); if (no_target_directory && argc > 3) { @@ -96,7 +96,7 @@ main (int argc, char *argv[]) for (i = 1; i < argc - 1; i++) { - source = g_file_get_for_commandline_arg (argv[i]); + source = g_file_new_for_commandline_arg (argv[i]); if (dest_is_dir && !no_target_directory) { diff --git a/programs/gvfs-info.c b/programs/gvfs-info.c index 4e4d3bec..4ed45972 100644 --- a/programs/gvfs-info.c +++ b/programs/gvfs-info.c @@ -313,7 +313,7 @@ main (int argc, char *argv[]) int i; for (i = 1; i < argc; i++) { - file = g_file_get_for_commandline_arg (argv[i]); + file = g_file_new_for_commandline_arg (argv[i]); if (writable) get_writable_info (file); else diff --git a/programs/gvfs-ls.c b/programs/gvfs-ls.c index a943c957..81ac723c 100644 --- a/programs/gvfs-ls.c +++ b/programs/gvfs-ls.c @@ -129,7 +129,7 @@ main (int argc, char *argv[]) int i; for (i = 1; i < argc; i++) { - file = g_file_get_for_commandline_arg (argv[i]); + file = g_file_new_for_commandline_arg (argv[i]); list (file); g_object_unref (file); } @@ -139,7 +139,7 @@ main (int argc, char *argv[]) char *cwd; cwd = g_get_current_dir (); - file = g_file_get_for_path (cwd); + file = g_file_new_for_path (cwd); g_free (cwd); list (file); g_object_unref (file); diff --git a/programs/gvfs-monitor-dir.c b/programs/gvfs-monitor-dir.c index 07455b71..bd624561 100644 --- a/programs/gvfs-monitor-dir.c +++ b/programs/gvfs-monitor-dir.c @@ -65,7 +65,7 @@ main (int argc, char *argv[]) if (argc > 1) { - file = g_file_get_for_commandline_arg (argv[1]); + file = g_file_new_for_commandline_arg (argv[1]); dmonitor = g_file_monitor_directory (file); g_signal_connect (dmonitor, "changed", (GCallback)dir_monitor_callback, NULL); } diff --git a/programs/gvfs-monitor-file.c b/programs/gvfs-monitor-file.c index 27eb3659..f8c538fe 100644 --- a/programs/gvfs-monitor-file.c +++ b/programs/gvfs-monitor-file.c @@ -65,7 +65,7 @@ main (int argc, char *argv[]) if (argc > 1) { - file = g_file_get_for_commandline_arg (argv[1]); + file = g_file_new_for_commandline_arg (argv[1]); fmonitor = g_file_monitor_file (file); g_signal_connect (fmonitor, "changed", (GCallback)file_monitor_callback, NULL); } diff --git a/programs/gvfs-mount.c b/programs/gvfs-mount.c index 693877c8..d3ab6164 100644 --- a/programs/gvfs-mount.c +++ b/programs/gvfs-mount.c @@ -169,7 +169,7 @@ main (int argc, char *argv[]) int i; for (i = 1; i < argc; i++) { - file = g_file_get_for_commandline_arg (argv[i]); + file = g_file_new_for_commandline_arg (argv[i]); mount (file); g_object_unref (file); } diff --git a/programs/gvfs-move.c b/programs/gvfs-move.c index eb21cc3e..8bced962 100644 --- a/programs/gvfs-move.c +++ b/programs/gvfs-move.c @@ -72,7 +72,7 @@ main (int argc, char *argv[]) return 1; } - dest = g_file_get_for_commandline_arg (argv[argc-1]); + dest = g_file_new_for_commandline_arg (argv[argc-1]); if (no_target_directory && argc > 3) { @@ -92,7 +92,7 @@ main (int argc, char *argv[]) for (i = 1; i < argc - 1; i++) { - source = g_file_get_for_commandline_arg (argv[i]); + source = g_file_new_for_commandline_arg (argv[i]); if (dest_is_dir && !no_target_directory) { diff --git a/programs/gvfs-rm.c b/programs/gvfs-rm.c index 02813631..1fb7c14e 100644 --- a/programs/gvfs-rm.c +++ b/programs/gvfs-rm.c @@ -32,7 +32,7 @@ main (int argc, char *argv[]) int i; for (i = 1; i < argc; i++) { - file = g_file_get_for_commandline_arg (argv[i]); + file = g_file_new_for_commandline_arg (argv[i]); error = NULL; if (!g_file_delete (file, NULL, &error)) { diff --git a/programs/gvfs-save.c b/programs/gvfs-save.c index 4fdd4266..1e9f36b0 100644 --- a/programs/gvfs-save.c +++ b/programs/gvfs-save.c @@ -136,7 +136,7 @@ main (int argc, char *argv[]) if (argc > 1) { - file = g_file_get_for_commandline_arg (argv[1]); + file = g_file_new_for_commandline_arg (argv[1]); res = save (file); g_object_unref (file); } diff --git a/programs/gvfs-trash.c b/programs/gvfs-trash.c index d42882c3..60ee2f7c 100644 --- a/programs/gvfs-trash.c +++ b/programs/gvfs-trash.c @@ -32,7 +32,7 @@ main (int argc, char *argv[]) int i; for (i = 1; i < argc; i++) { - file = g_file_get_for_commandline_arg (argv[i]); + file = g_file_new_for_commandline_arg (argv[i]); error = NULL; if (!g_file_trash (file, NULL, &error)) { |