glibmm r547 - in trunk: . gio/src
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glibmm r547 - in trunk: . gio/src
- Date: Tue, 29 Jan 2008 12:27:07 +0000 (GMT)
Author: murrayc
Date: Tue Jan 29 12:27:07 2008
New Revision: 547
URL: http://svn.gnome.org/viewvc/glibmm?rev=547&view=rev
Log:
2008-01-29 Murray Cumming <murrayc murrayc com>
* gio/src/file.hg: get_child_for_display_name():
Change the display_name parameter to a ustring because
the C documentation says it should be UTF-8.
* gio/src/fileinfo.hg: Add get_attribute_as_string(), which
returns a UTF-8 string.
(Note that no other gio documentation mentions UTF-8.)
Thanks to Iain Nicol.
Modified:
trunk/ChangeLog
trunk/gio/src/file.hg
trunk/gio/src/fileinfo.hg
Modified: trunk/gio/src/file.hg
==============================================================================
--- trunk/gio/src/file.hg (original)
+++ trunk/gio/src/file.hg Tue Jan 29 12:27:07 2008
@@ -145,7 +145,7 @@
_WRAP_METHOD(Glib::RefPtr<File> get_child(const std::string& name) const,
g_file_get_child)
- _WRAP_METHOD(Glib::RefPtr<File> get_child_for_display_name(const std::string& display_name) const,
+ _WRAP_METHOD(Glib::RefPtr<File> get_child_for_display_name(const Glib::ustring& display_name) const,
g_file_get_child_for_display_name,
errthrow)
@@ -1364,7 +1364,7 @@
// _WRAP_VFUNC(Glib::RefPtr<File> get_child(const std::string& name) const, "get_child")
// TODO: howto wrap a vfunc that takes a GError**
-// _WRAP_VFUNC(Glib::RefPtr<File> get_child_for_display_name(const std::string& display_name) const,
+// _WRAP_VFUNC(Glib::RefPtr<File> get_child_for_display_name(const Glib::ustring& display_name) const,
// "get_child_for_display_name",
// errthrow)
Modified: trunk/gio/src/fileinfo.hg
==============================================================================
--- trunk/gio/src/fileinfo.hg (original)
+++ trunk/gio/src/fileinfo.hg Tue Jan 29 12:27:07 2008
@@ -89,6 +89,8 @@
g_file_info_remove_attribute)
_WRAP_METHOD(std::string get_attribute_string(const std::string& attribute) const,
g_file_info_get_attribute_string)
+ _WRAP_METHOD(Glib::ustring get_attribute_as_string(const std::string& attribute) const,
+ g_file_info_get_attribute_as_string)
_WRAP_METHOD(std::string get_attribute_byte_string(const std::string& attribute) const,
g_file_info_get_attribute_byte_string)
_WRAP_METHOD(bool get_attribute_boolean(const std::string& attribute) const,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]