2.27.99.2:
2011-03-29 Murray Cumming <
[email protected]>
Variant: Rename get(index) to get_child(index).
* glib/src/variant.[hg|ccg]: Rename all get() methods that return children
to get_child() to make the API clearer and to avoid ambiguity with get()
methods that return the underlying type instead.
* examples/dbus/peer.cc:
* examples/dbus/userbus.cc:
* tests/glibmm_variant/main.cc: Adapted.
https://bugzilla.gnome.org/show_bug.cgi?id=644207#c7
(Yannick Guesnet)
2011-03-29 Murray Cumming <murrayc@murrayc-desktop>
FileUtils: Correct my previous commit.
* glib/src/fileutils.ccg:
* glib/src/iochannel.ccg: Do not create a ustring instead of a std::string.
2011-03-29 Murray Cumming <
[email protected]>
Use the utility functions for creating strings.
* gio/src/dbuserrorutils.ccg:
* gio/src/dbusownname.ccg:
* gio/src/dbusutils.ccg:
* gio/src/dbuswatchname.ccg:
* glib/src/fileutils.ccg:
* glib/src/iochannel.ccg:
* glib/src/markup.ccg:
* glib/src/variant.ccg: Use convert_const_gchar_ptr_to_ustring() and
convert_const_gchar_ptr_to_stdstring(), simplifying code and sometimes
avoiding crashes with NULL const char*.
2011-03-29 Murray Cumming <
[email protected]>
Variant<std::string>::get(): Correct my custom implementation.
* glib/src/variant.ccg: Really call g_variant_get_bytestring().
2011-03-29 Murray Cumming <
[email protected]>
Variant: Move constructor definitions into the .cc file.
* glib/src/variant.[hg|ccg]: The implementations of constructors for
template specializations do not need to be inline. This lets us fix them
later without requiring recompilation of applications.
2011-03-29 Murray Cumming <
[email protected]>
Variant: Really declare the cast_dyamic() specialization for ustring.
* glib/src/variant.[hg|ccg]: Mention the specialization in the .h file instead
of just in the .cc file.
Also write a custom Variant<std::string>::get() implementation because this
can be used for types other than just bytestring.
* tests/glibmm_variant/main.cc: Add tests for the new casts.
2011-03-28 Krzesimir Nowak <
[email protected]>
ArrayHandle: Make it compilable with MSVC 2005, 2008, 2010.
* glib/glibmm/arrayhandle.h: Put operator std::container methods
definitions inside class template definition. Also added decrementation
operators for ArrayHandleIterator for MSVC 2005.
Bug #645851 (Fan, Chun-wei)
2011-03-28 Murray Cumming <
[email protected]>
Variant: Use the VARIANT_TYPE_* constants.
* glib/src/variant.ccg: Use the constants instead of creating static members.
2011-03-28 Murray Cumming <
[email protected]>
VariantType: Capitalize the standard types.
* glib/src/varianttype.[hg|ccg]: Use, for instance VARIANT_TYPE_STRING instead
of VariantTypeString. This seems more appropriate for a constant and is the
style used by gtkmm's STOCK_* items, which this is based on.
* glib/src/variant.ccg: Adapt.
2011-03-28 Murray Cumming <
[email protected]>
Variant: Add cast_dynamic<> specializations for strings.
* glib/src/variant.[hg|ccg]: Add cast_dynamic() specializations for
Vector<std::string> and Vector<Glib::ustring>, because this type seems
appropriate for multiple types. For instance, see
http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-get-string
Thanks to Povietkin Konstantin.