1. 04 Jul, 2013 1 commit
  2. 10 Jun, 2013 1 commit
    • José Alburquerque's avatar
      Gen Scripts: Minor clean up of the description of the scripts. · 19609dd5
      José Alburquerque authored
      	* tools/gen_scripts/gio_generate_docs.sh:
      	* tools/gen_scripts/gio_generate_enums.sh:
      	* tools/gen_scripts/gio_generate_extra_defs.sh:
      	* tools/gen_scripts/gio_generate_methods.sh:
      	* tools/gen_scripts/glib_generate_docs.sh:
      	* tools/gen_scripts/glib_generate_enums.sh:
      	* tools/gen_scripts/glib_generate_extra_defs.sh:
      	* tools/gen_scripts/glib_generate_methods.sh:
      19609dd5
  3. 09 Jun, 2013 1 commit
    • José Alburquerque's avatar
      gmmproc: Use an environment variable for the return mismatches. · bcf1fbc1
      José Alburquerque authored
      	* tools/gmmproc.in: Check for the GMMPROC_RETURN_MISMATCHES
      	environment variable and use its value as the default for the internal
      	boolean '$main::return_mismatches' variable which when true makes
      	gmmproc report if the return type in a _WRAP_METHOD() does not match
      	the C function return type.
      bcf1fbc1
  4. 07 Jun, 2013 1 commit
    • Kjell Ahlstedt's avatar
      gmmproc: Write glibmm version in generated files. · 621835cf
      Kjell Ahlstedt authored
      * tools/gmmproc.in: Use autoconf's substitution variable @PACKAGE_VERSION@.
      * tools/m4/base.m4: _START() macro: Add argument glibmm_version.
      * tools/pm/Output.pm: output_temp_g1(): Add argument glibmm_version.
      
      The problems with gtkmm 2.24.3 (bug 697835 and bug 700495) show that it can
      be useful to easily see which version of gmmproc/glibmm has generated a file.
      621835cf
  5. 06 Jun, 2013 2 commits
    • José Alburquerque's avatar
      Gio::DBusInterfaceSkeleton: Constant corrections. · d424a097
      José Alburquerque authored
      	* gio/src/dbusinterfaceskeleton.hg (get_info): Add a const get_info()
      	method returning a constant InterfaceInfo and make the original one
      	non-constant.
      	(has_connection): Accept the Connection as constant because it should
      	not be modified.
      	* tools/m4/convert_gio.m4: Add a needed conversion.
      d424a097
    • José Alburquerque's avatar
      giomm: Add the Gio::DBus::InterfaceSkeleton class. · 8e3da2e4
      José Alburquerque authored
      	* gio/src/dbusinterfaceskeleton.{ccg,hg}:
      	* gio/src/filelist.am: Add the sources wrapping the methods,
      	properties and signals and list the sources in the list of files to be
      	built.
      	* gio/src/gio_signals.defs:
      	* tools/extra_defs_gen/generate_defs_gio.cc: Add the
      	GDBUSInterfaceSkeleton GType to the properties and signals defs
      	generation tool and regenerate the .defs file.
      	* tools/m4/convert_gio.m4: Add the conversions for the wrapped
      	methods, properties and signals.
      8e3da2e4
  6. 04 Jun, 2013 2 commits
  7. 02 Jun, 2013 2 commits
  8. 21 May, 2013 2 commits
  9. 18 May, 2013 2 commits
  10. 14 May, 2013 1 commit
    • José Alburquerque's avatar
      Custom Interface Properties: Use base finalize function to free data. · 1826a955
      José Alburquerque authored
      	* glib/glibmm/class.cc (Class::clone_custom_type): Specify a custom
      	base finalize function for the custom type which would free the
      	properties data that might exist due to properties of implemented
      	interfaces being overridden.  This is better than having an interface
      	finalize function because the custom type could implement several
      	interfaces which would mean that the interface finalize function would
      	execute more than once as opposed to just once for the base finalize
      	function.
      	* glib/glibmm/class.h (Class::interface_finalize_function): Replace
      	with Class::custom_class_base_finalize_function().
      
      	* glib/glibmm/interface.cc (Interface_Class::add_interface): Do not
      	specify a custom interface finalize function.
      
      	(Interface::Interface(const Interface_Class&): Also initialize the
      	property GValues using g_param_value_set_default() so that they are
      	initialized with the default values of the properties and not just the
      	default value of the GValue type.
      
      	Bug #697229.
      1826a955
  11. 08 May, 2013 1 commit
  12. 07 May, 2013 1 commit
  13. 29 Apr, 2013 5 commits
  14. 25 Apr, 2013 3 commits
  15. 18 Apr, 2013 1 commit
  16. 15 Apr, 2013 1 commit
  17. 12 Apr, 2013 3 commits
  18. 10 Apr, 2013 1 commit
    • José Alburquerque's avatar
      gmmproc: Parse the argument list of methods correctly. · 975f517d
      José Alburquerque authored
      	* tools/pm/Function.pm (parse_param): When splitting the argument
      	list split the parameter '{...}' options out and separately and deal
      	with them in their own 'elsif' which is more clear and avoids code
      	duplication.  Also, don't split the '<...>' matches greedily because
      	that causes problems when a Glib::RefPtr<> parameter has a default
      	value.
      
      	This problem was discovered while trying to not use the optional
      	parameter syntax for the Gio::TlsCertificate::verify() method by using
      	a default value for the 'trusted_ca' parameter although upon
      	investigation it became clear that keeping the syntax (and the method
      	overloads) would be useful because a verify() with no parameters can
      	be used to verify things about a certificate unrelated to the identity
      	and the trusted_ca (see the TlsCertificateFlags enum that the method
      	returns).
      975f517d
  19. 08 Apr, 2013 1 commit
  20. 07 Apr, 2013 3 commits
    • José Alburquerque's avatar
      Gio::TlsServerConnection: Wrap it just like TlsClientConnection. · 237cdf95
      José Alburquerque authored
      	* gio/src/tlsserverconnection.{ccg,hg}: Use a custom cast constructor
      	just as in TlsClientConnection because this class too derives from
      	Glib::Interface and Gio::TlsConnection though it only derives from
      	GInterface in the C API.  It would have the same problems described in
      	the commit fixing the TlsClientCOnnection class (the next to the last
      	one).
      237cdf95
    • José Alburquerque's avatar
      Tests: Add a basic test for the Tls* API. · e9d09efc
      José Alburquerque authored
      	* tests/giomm_tls_client/main.cc:  The test basically works though it
      	would be good to test more thoroughly the TlsDatabase API.
      e9d09efc
    • José Alburquerque's avatar
      Gio::TlsClientConnection: Make the class work correctly. · ed95a3b5
      José Alburquerque authored
      	* tools/m4/class_interface.m4 (_CUSTOM_CTOR_CAST): Add a new macro so
      	that classes wrapped by the _CLASS_INTERFACE() macro can implement a
      	custom cast constructor.  This is so that classes like
      	Tls[Client|Server]Connection, that derive from Glib::Interface but
      	should also derive from a Glib::Object derived type, though they do
      	not do so in the C API, don't produce warnings from an attempt to set
      	the non-existent properties of the GObject derived type when an
      	attempt to construct the C object is made in the default Glib::Object
      	constructor.  Glib::wrap_auto_interface<>(), which is called by
      	Glib::wrap() for interfaces, uses the cast constructor to create the
      	wrapper which calls the cast constructor of Glib::Interface.  If the
      	Glib::Object derived base class of the wrapper has a default
      	constructor, that constructor is then called which leads to the
      	Glib::Object default constructor being called, which tries to
      	construct the C object and set its properties thus producing the
      	property setting warnings.  A custom cast constructor can chain up to
      	the cast constructor of the Glib::Object derived type thus avoiding
      	the call to the Glib::Object default constructor and the non-existent
      	property setting warnings.
      	* glib/glibmm/interface.cc:
      	* glib/glibmm/interface.h (Interface): Add a default constructor so
      	that in the cases above (when the cast constructor of the
      	Glib::Object's derived type is used), the compiler can find a
      	Glib::Interface default constructor to use.  Using the Glib::Interface
      	cast constructor as well as the cast constructor of the Glib::Object
      	derived type would cause "ObjectBase::initialize() called twice
      	for the same GObject" errors.
      ed95a3b5
  21. 06 Apr, 2013 1 commit
    • Murray Cumming's avatar
      Add a test of implementing an interface. · 98ace365
      Murray Cumming authored
      * tests/Makefile.am:
      * tests/glibmm_interface_implementation/main.cc: Add a very simple
      test that implements an interface, with a vfunc implementation and
      make sure that the vfunc is called when the caller method is called.
      98ace365
  22. 02 Apr, 2013 1 commit
  23. 01 Apr, 2013 3 commits