summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Use the latest mm-common.Murray Cumming2011-03-303-8/+9
| | | | | | * configure.ac: Require the latest version. * doc/Makefile.am: Don't specify the mm-common .pl files to distribute because mm-common now does this automatically.
* 2.27.99.22.27.99.2Murray Cumming2011-03-293-1/+20
|
* Variant: Rename get(index) to get_child(index).Murray Cumming2011-03-296-20/+33
| | | | | | | | | | | * 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)
* FileUtils: Correct my previous commit.Murray Cumming2011-03-293-5/+10
| | | | | * glib/src/fileutils.ccg: * glib/src/iochannel.ccg: Do not create a ustring instead of a std::string.
* Use the utility functions for creating strings.Murray Cumming2011-03-299-15/+30
| | | | | | | | | | | | | * 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*.
* Variant<std::string>::get(): Correct my custom implementation.Murray Cumming2011-03-292-1/+7
| | | | * glib/src/variant.ccg: Really call g_variant_get_bytestring().
* ChangeLog improvementMurray Cumming2011-03-291-0/+1
|
* Variant: Move constructor definitions into the .cc file.Murray Cumming2011-03-293-50/+97
| | | | | | * 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.
* Variant: Really declare the cast_dyamic() specialization for ustring.Murray Cumming2011-03-294-19/+151
| | | | | | | | * glib/src/variant.[hg|ccg]: Mention the specialization in the .h file instead of just in the .ccg 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.
* Whitespace changesMurray Cumming2011-03-291-12/+12
|
* ArrayHandle: Make it compilable with MSVC 2005, 2008, 2010.Krzesimir Nowak2011-03-292-43/+60
| | | | | | * glib/glibmm/arrayhandle.h: Put operator std::container methods definitions inside class template definition. Also added decrementation operators for ArrayHandleIterator for MSVC 2005.
* Really correct the ChangeLogMurray Cumming2011-03-281-0/+9
|
* Correct the ChangeLogMurray Cumming2011-03-281-5/+2
|
* VariantType: Capitalize the standard types.Murray Cumming2011-03-283-15/+10
| | | | | | | * 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.
* VariantType: Capitalize the standard types.Murray Cumming2011-03-284-57/+66
| | | | | | | * 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.
* Variant: Add cast_dynamic<> specializations for strings.Murray Cumming2011-03-283-1/+66
| | | | | | | | * 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.
* 2.27.99.12.27.99.1Murray Cumming2011-03-273-1/+8
|
* Gio::DBus*: More use of VariantContainerBase.Murray Cumming2011-03-275-12/+25
| | | | | | | | | | * gio/src/dbusconnection.hg: * gio/src/dbusinterfacevtable.hg: Correct the documentation. * gio/src/dbusproxy.[hg|cgg]: call(): Take a VariantContainerBase instead of a VariantBase. signal: Provide a VariantContainerBase instead of a VariantBase, though this is not documented as necessarily being a tuple, though it is multiple values.
* Avoid use of NULL in C++Murray Cumming2011-03-272-2/+2
|
* Balanced Tree: Clean up the documentation.Murray Cumming2011-03-272-117/+96
| | | | * glib/src/balancedtree.hg: Use doxygen syntax.
* Gio::DBus: Use VariantContainerBase for tuple Variants.Murray Cumming2011-03-258-79/+55
| | | | | | | | | | | | * gio/src/dbusconnection.[hg|ccg]: * gio/src/dbusproxy.ccg.[hg|ccg]: call_sync(), call(), call_finish(): Use VariantContainerBase, instead of VariantBase, for GVariants that are documented as being tuples. Because the type is known we can also use it as a simple return type instead of an output parameter. * tools/m4/convert_gio.m4: Added a necessary conversion. * examples/dbus/peer.cc: * examples/dbus/userbus.cc: Adapted. These already correctly assumed that the type should be VariantContainerBase.
* 2.27.992.27.99Murray Cumming2011-03-243-1/+16
|
* Remove Gio::Application and friends for now because they are not finished.Murray Cumming2011-03-249-658/+10
| | | | | | | | * gio/src/actiongroup.[hg|ccg]: * gio/src/application.[hg|ccg]: * gio/src/applicationcommandline.[hg|ccg]: Removed these temporarily because we removed Gtk::Application temporarily from gtkmm. See http://mail.gnome.org/archives/gtkmm-list/2011-March/msg00062.html
* Regenerate the XML for the C API documentation.gapplicationMurray Cumming2011-03-243-107/+176
| | | | | * gio/src/gio_docs.xml: * glib/src/glib_docs.xml: Regenerated with docextract_to_xml.py.
* Gio: Remove SettingsBackend.Murray Cumming2011-03-246-99/+20
| | | | | | | | | | | * gio/src/settingsbackend.[hg|ccg]: Remove these because we do not know yet if implementing GSettings backends is useful or encouraged, and our wrapper is unimplemented, requiring an ABI break to fix it when adding the virtual methods. * gio/src/filelist.am: Remove mention of the files. * gio/src/settings.hg: Remove use of SettingsBackend here too. Unfortunately this might have been slightly useful but we cannot provide this API without freezing a SettingsBackend API.
* Minor comment changes.Murray Cumming2011-03-243-5/+13
|
* Another docs fix.Murray Cumming2011-03-241-4/+4
|
* More minor documentation corrections.Murray Cumming2011-03-249-24/+35
| | | | | | | | | | | * gio/src/dbusauthobserver.hg: * gio/src/dbusconnection.hg: * gio/src/dbusmessage.hg: * gio/src/dbusmethodinvocation.hg: * gio/src/dbusproxy.hg: * gio/src/dbusserver.hg: * gio/src/dbussubtreevtable.hg: * glib/src/varianttype.hg: More fixes since the change from DBus* to DBus::.
* Documentation: Change DBus to D-Bus.Murray Cumming2011-03-242-6/+13
| | | | | * glib/src/varianttype.hg: Use the correct name for D-Bus. I made the same change in the C documentation.
* Variant: Improved the documentation, based on the C documentation.Murray Cumming2011-03-242-20/+68
| | | | | * glib/src/variant.hg: Also changed two methods to take std::string by const &.
* Avoid a tarball dependency on mm-common.Murray Cumming2011-03-243-1/+22
| | | | | | | * configure.ac: Add a call to MM_CONFIG_DOCTOOL_DIR() telling it to copy the files locally and use them from there. * docs/Makefile.am: Dist the copied files, so that the build does not try to use the versions installed by mm-common.
* 2.27.982.27.98Murray Cumming2011-03-233-1/+14
|
* Gio::DBus::InterfaceVTable: Make the tuple clearer.Murray Cumming2011-03-233-2/+14
| | | | | | | | * gio/src/dbusinterfacevtable.[hg|ccg]: SlotInterfaceMethodCall: Change the VariantBase type to a VariantContainerBase, because this is a tuple, so people should get the children. This makes it more obvious. DBusInterfaceVTable_MethodCall_giomm_callback(): Adapt. Suggested by Michael Edwards.
* Gio::DBus: Move InterfaceVTable and SubtreeVTable to their own files.Murray Cumming2011-03-238-549/+723
| | | | | | | * gio/src/dbusinterfacevtable.[hg|ccg]: * gio/src/dbussubtreevtable.[hg|ccg]: Moved code here from * gio/src/dbusconnection.[hg|ccg]. * gio/src/filelist.am: Mention the new files.
* Correct some range checks to use >= instead of just >.Murray Cumming2011-03-214-5/+14
| | | | | | | * glib/glibmm/stringutils.cc: Glib::Ascii::strtod(): * glib/src/variant.[hg|ccg]: get(): Correct the range check. This would previously not have caught all wrong ranges. Thanks to Michael Edwards.
* Vectorutils, ArrayHandle: Check for NULL pointers.Krzesimir Nowak2011-03-219-46/+162
| | | | | | | | | | | | | | | * glib/glibmm/vectorutils.[h|cc]: Don't crash in compute_array_size2, when NULL is passed - in that case just return 0. Also, array_to_vector method return empty vector in such case. * glib/glibmm/arrayhandle.[h|cc]: Set array_size to zero if passed array is NULL. * tests/glibmm_null_vectorutils/main.cc: New test for NULL arrays and lists for vectorutils. * tests/glibmm_null_containerhandle/main.cc: New test for NULL arrays and lists for containerhandles. * tests/Makefile.am: Added new tests to build. Spotted by Kalev Lember. Bug #645245.
* Date: Document that some methods return *this, and why.Murray Cumming2011-03-212-29/+65
| | | | | * glib/src/date.hg: Thanks to Kjell Ahlstedt: http://mail.gnome.org/archives/gtkmm-list/2011-March/msg00049.html
* 2.27.972.27.97Murray Cumming2011-03-163-3/+22
|
* Variant: Remove unncessary Glib:: namespace qualification.Murray Cumming2011-03-165-92/+103
| | | | | | | * glib/src/variant.[hg|ccg] * glib/src/variantiter.hg: * glib/src/varianttype.hg: Remove the unnecessary Glib:: namespace qualification in the API and documentation.
* Gio::Variant: Add some get() method overloads.Murray Cumming2011-03-163-0/+23
| | | | | | | | | | * glib/src/variant.[hg|ccg]: Variant<VariantBase>: Add a get(VariantBase&) along with the existing VariantBase get(). VariantContainerBase: Added a VariantBase get() to match the existing get(VariantBase&). Both seem useful, particularly now that we can cast_dynamic them. VariantContainerBase::get() should maybe be renamed to get_child() too.
* Changelog correctionMurray Cumming2011-03-161-1/+1
|
* Dbus::Proxy: properties_changed signal: Avoid namespace qualifiers in header.Murray Cumming2011-03-163-11/+22
| | | | | * gio/src/dbusproxy.[h|ccg]: Add a typedef to the .ccg file to help the compiler so we do not need the namespace qualifiers in the API.
* DBus::Proxy: Added signal properties_changedYannick Guesnet2011-03-163-7/+22
| | | | | | | * gio/src/dbusproxy.hg: Add signal properties_changed. * gio/src/gio_signals.defs: Change the type of a parameter of signal g-properties-changed from "GStrv" to "const gchar * const *" to match the signal declaration.
* Improve ChangeLogMurray Cumming2011-03-161-0/+2
|
* Gio::Variant: Use _WRAP_METHOD() instead of hand-coding.Murray Cumming2011-03-163-20/+22
| | | | * glib/src/variant.[hg|ccg]: Use _WRAP_METHOD() for two hand-coded methods.
* Variant: Added Variant<VariantBase>::get().Yannick Guesnet2011-03-164-1/+54
| | | | | | | | | * glib/src/variant.[ccg|hg]: Added Variant<VariantBase>::get(). * tests/glibmm_variant/main.cc: Add some tests. This is useful because Variant<VariantBase> can be manipulate as other variants of type Variant<T>. This allow, for example, to define variants of type Variant<std::map<ustring, VariantBase> >.
* Variant: Add a cast operator.Yannick Guesnet2011-03-164-1/+110
| | | | | | | | | | | | * gio/src/glib/src/variant.[ccg|hg]: Add a VariantBase::cast_dynamic() static method. * tests/glibmm_variant/main.cc: Add some tests. This is useful because VariantBase can and will be passed by value sometimes and DBus may have actual Variant types whose underlying type will not be known at compile time (this note was by Murray). Bug #644146
* Added some TODOSMurray Cumming2011-03-161-1/+6
|
* Fix missing doc-install.pl problem with the tarball build.Murray Cumming2011-03-162-1/+17
| | | | | | | | | | | | | | | * configure.ac: Remove the call to MM_CONFIG_DOCTOOL_DIR() so we do not copy the mm-common doc utils into glibmm and do not try to use local copies of them. This is what gtkmm and other modules do so it makes sense to do it now for glibmm now that glibmm is not the one that supplies these for pkg-config. This fixes bug #644829 (David Ronis) with the tarball build and Ubuntu launchpad bug https://bugs.launchpad.net/ubuntu/+source/glibmm2.4/+bug/735856 (Krzysztof Klimonda) However, I can see the point of distributing copies in the tarball, which could make the tarball build not need mm-common at all. But if we want that then we should decide to do it for gtkmm and other modules too.
* 2.27.962.27.96Murray Cumming2011-03-153-30/+57
|