summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@katamail.com>2006-03-22 09:04:21 +0000
committerPaolo Borelli <pborelli@src.gnome.org>2006-03-22 09:04:21 +0000
commit11078e897a92bbbcac642df213f005dcde4806f1 (patch)
tree8dd6baa6878fdd6e73cb7ee7a96b73607c825543
parentfa1dd162316e52b758553993444d9bb6889a2a87 (diff)
downloadnautilus-11078e897a92bbbcac642df213f005dcde4806f1.tar.gz
use g_strv_length instead of a private copy and
2006-03-22 Paolo Borelli <pborelli@katamail.com> * src/nautilus-application.c: use g_strv_length instead of a private copy and gnome_vfs_make_uri_from_shell_arg instead of the old eel_make_uri_from_shell_arg. Bug #334077.
-rw-r--r--ChangeLog6
-rw-r--r--src/nautilus-application.c15
2 files changed, 8 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a1fb5a11..65c765015 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-22 Paolo Borelli <pborelli@katamail.com>
+
+ * src/nautilus-application.c: use g_strv_length instead of a
+ private copy and gnome_vfs_make_uri_from_shell_arg instead of
+ the old eel_make_uri_from_shell_arg. Bug #334077.
+
2006-03-22 Martin Wehner <martin.wehner@gmail.com>
* src/file-manager/fm-directory-view.c:
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 9c07290c8..d0daa6ed2 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -58,8 +58,6 @@
#include <eel/eel-stock-dialogs.h>
#include <eel/eel-string-list.h>
#include <eel/eel-string.h>
-#include <eel/eel-vfs-extensions.h>
-#include <eel/eel-gtk-extensions.h>
#include <gdk/gdkx.h>
#include <gtk/gtkinvisible.h>
#include <gtk/gtksignal.h>
@@ -283,15 +281,6 @@ check_required_directories (NautilusApplication *application)
return failed_count == 0;
}
-static int
-nautilus_strv_length (const char * const *strv)
-{
- const char * const *p;
-
- for (p = strv; *p != NULL; p++) { }
- return p - strv;
-}
-
static Nautilus_URIList *
nautilus_make_uri_list_from_shell_strv (const char * const *strv)
{
@@ -299,14 +288,14 @@ nautilus_make_uri_list_from_shell_strv (const char * const *strv)
Nautilus_URIList *uri_list;
char *translated_uri;
- length = nautilus_strv_length (strv);
+ length = g_strv_length ((char **) strv);
uri_list = Nautilus_URIList__alloc ();
uri_list->_maximum = length;
uri_list->_length = length;
uri_list->_buffer = CORBA_sequence_Nautilus_URI_allocbuf (length);
for (i = 0; i < length; i++) {
- translated_uri = eel_make_uri_from_shell_arg (strv[i]);
+ translated_uri = gnome_vfs_make_uri_from_shell_arg (strv[i]);
uri_list->_buffer[i] = CORBA_string_dup (translated_uri);
g_free (translated_uri);
translated_uri = NULL;