summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/filedialog.cpp
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-07-16 17:56:58 +0000
committerishmal <ishmal@users.sourceforge.net>2006-07-16 17:56:58 +0000
commitf40a240335c5375d1c95fac4c75445dc47e05ec8 (patch)
tree13501ff2bd9a20702d10ee259f45c43ef5d343ab /src/ui/dialog/filedialog.cpp
parentLayout algorithm is now applied to each connected component in the (diff)
downloadinkscape-f40a240335c5375d1c95fac4c75445dc47e05ec8.tar.gz
inkscape-f40a240335c5375d1c95fac4c75445dc47e05ec8.zip
more string cleanup
(bzr r1422)
Diffstat (limited to 'src/ui/dialog/filedialog.cpp')
-rw-r--r--src/ui/dialog/filedialog.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/ui/dialog/filedialog.cpp b/src/ui/dialog/filedialog.cpp
index e3ebffc63..cb72d17f5 100644
--- a/src/ui/dialog/filedialog.cpp
+++ b/src/ui/dialog/filedialog.cpp
@@ -5,7 +5,7 @@
* Bob Jamison
* Other dudes from The Inkscape Organization
*
- * Copyright (C) 2004 The Inkscape Organization
+ * Copyright (C) 2004-2006 The Inkscape Organization
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
@@ -736,9 +736,9 @@ public:
Inkscape::Extension::Extension *getSelectionType();
- gchar *getFilename();
+ Glib::ustring getFilename();
- Glib::SListHandle<Glib::ustring> getFilenames ();
+ std::vector<Glib::ustring> getFilenames ();
protected:
@@ -1073,7 +1073,7 @@ FileOpenDialogImpl::getSelectionType()
/**
* Get the file name chosen by the user. Valid after an [OK]
*/
-gchar *
+Glib::ustring
FileOpenDialogImpl::getFilename (void)
{
return g_strdup(myFilename.c_str());
@@ -1083,9 +1083,10 @@ FileOpenDialogImpl::getFilename (void)
/**
* To Get Multiple filenames selected at-once.
*/
-Glib::SListHandle<Glib::ustring>FileOpenDialogImpl::getFilenames()
+std::vector<Glib::ustring>FileOpenDialogImpl::getFilenames()
{
- return get_filenames();
+ std::vector<Glib::ustring> result = get_filenames();
+ return result;
}
@@ -1125,7 +1126,7 @@ public:
Inkscape::Extension::Extension *getSelectionType();
- gchar *getFilename();
+ Glib::ustring getFilename();
private:
@@ -1494,10 +1495,10 @@ FileSaveDialogImpl::getSelectionType()
/**
* Get the file name chosen by the user. Valid after an [OK]
*/
-gchar *
+Glib::ustring
FileSaveDialogImpl::getFilename()
{
- return g_strdup(myFilename.c_str());
+ return myFilename;
}
@@ -1530,7 +1531,7 @@ public:
Inkscape::Extension::Extension *getSelectionType();
- gchar *getFilename();
+ Glib::ustring getFilename();
private:
@@ -1897,13 +1898,15 @@ FileExportDialogImpl::getSelectionType()
/**
* Get the file name chosen by the user. Valid after an [OK]
*/
-gchar *
+Glib::ustring
FileExportDialogImpl::getFilename()
{
- return g_strdup(myFilename.c_str());
+ return myFilename;
}
+
+
} //namespace Dialog
} //namespace UI
} //namespace Inkscape