summaryrefslogtreecommitdiffstats
path: root/src/ui/interface.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marcjeanmougin@free.fr>2017-09-29 16:31:55 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2017-09-29 16:31:55 +0000
commite79dffd40b61de158876961997df5c3cb3f34414 (patch)
tree92a712d41f12815f20b9021c8a78b9bd362cb1da /src/ui/interface.cpp
parentCI/AppVeyor: Fix tests involving font rendering (diff)
downloadinkscape-e79dffd40b61de158876961997df5c3cb3f34414.tar.gz
inkscape-e79dffd40b61de158876961997df5c3cb3f34414.zip
remove helper/gnome-utils.*
Diffstat (limited to 'src/ui/interface.cpp')
-rw-r--r--src/ui/interface.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp
index 0223b2b3b..93e91b8f8 100644
--- a/src/ui/interface.cpp
+++ b/src/ui/interface.cpp
@@ -51,7 +51,6 @@
#include "sp-namedview.h"
#include "sp-root.h"
#include "helper/action.h"
-#include "helper/gnome-utils.h"
#include "helper/window.h"
#include "io/sys.h"
#include "ui/dialog-events.h"
@@ -1339,12 +1338,13 @@ static void sp_ui_drag_leave( GtkWidget */*widget*/,
static void
sp_ui_import_files(gchar *buffer)
{
- GList *list = gnome_uri_list_extract_filenames(buffer);
- if (!list)
- return;
- g_list_foreach(list, sp_ui_import_one_file_with_check, NULL);
- g_list_foreach(list, (GFunc) g_free, NULL);
- g_list_free(list);
+ gchar** l = g_uri_list_extract_uris(buffer);
+ for (int i = 0; i< g_strv_length (l); i++) {
+ gchar *f = g_filename_from_uri (l[i], NULL, NULL);
+ sp_ui_import_one_file_with_check(f, NULL);
+ g_free(f);
+ }
+ g_strfreev(l);
}
static void