summaryrefslogtreecommitdiff
path: root/glib/glibmm/interface.h
Commit message (Collapse)AuthorAgeFilesLines
* C++11: .h/.cc files: Replace typedefs with using.Murray Cumming2016-03-311-3/+3
|
* Run clang-format on glib .h files.Murray Cumming2016-02-261-9/+7
|
* C++11: Replace virtual keyword with override keyword on destructors.Murray Cumming2015-12-241-1/+1
| | | | This ensures that the base class is really virtual.
* Interface: Make move operations noexcept.Murray Cumming2015-08-311-2/+2
|
* Make destructors explicitly noexcept.Murray Cumming2015-08-311-1/+1
| | | | | Destructors are already noexcept, but this makes that even clearer. This might be foolish.
* Glib::ObjectBase, Object, Interface: Add move operators.Murray Cumming2015-08-221-0/+3
| | | | | Add move constructors and move assignment operators so that derived classes can have these too.
* C++11: Use = delete instead of private to make classes noncopyable.Murray Cumming2015-07-181-5/+4
|
* Missing GLIBMM_API for InterfaceMikhail Titov2015-05-061-1/+1
| | | | It is used by Gtk::CellLayout and Gtk::TreeViewColumn. Bug #748719.
* Gio::TlsClientConnection: Make the class work correctly.José Alburquerque2013-04-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Documentation: Fix many warnings from Doxygen.Kjell Ahlstedt2013-01-271-1/+1
| | | | | | | | | | | | | | | * gio/src/gio_docs_override.xml: * glib/src/glib_docs_override.xml: Move "Since: n.m" from the <return> to the <description> entries. gmmproc adds a period at the end of the @return Doxygen command, and Doxygen warns for "@newin{n,m}.". * glib/glibmm/interface.h: * glib/glibmm/stringutils.h: * glib/glibmm/vectorutils.h: * gio/src/*.hg: * glib/src/*.hg: (Here "*" means "many", not "all") Examples of changes: Add missing @param. Change names of parameters, to make them equal in function declaration and @param command. Change "@name" to "@a name". Change "<ulink url=" to "<a href=".
* Strip trailing whitespace.Mark Vender2012-10-291-6/+6
| | | | | | | * gio/giomm/*.[h|cc]: * gio/src/*.[hg|ccg]: * glib/glibmm/*.[h|cc]: * glib/src/*.[hg|ccg]: Strip trailing whitespace. Bug #681072.
* Change license header to mention Lesser General Public License version 2.1Deng Xiyue2009-01-191-4/+4
| | | | | | | | | | 2009-01-20 Deng Xiyue <manphiz@gmail.com> * Change license header to mention Lesser General Public License version 2.1 instead of Library General Public License, to be consistent with COPYING. svn path=/trunk/; revision=779
* Allow _CLASS_INTERFACE() to take two extra optional paremeters to specifyMurray Cumming2008-02-041-0/+13
| | | | | | | | | | | | | | | | | 2008-02-04 Murray Cumming <murrayc@murrayc.com> * tools/m4/class_interface.m4: Allow _CLASS_INTERFACE() to take two extra optional paremeters to specify the base class, so that appropriate code is generated when we derive from another Interface - which seems appropriate when the GInterface has a prerequisite. * gio/src/loadableicon.ccg: * gio/src/loadableicon.hg: Derive from Icon, because it is a prerequisite of this interface. Use the extra _CLASS_INTERFACE() parameters. * gio/src/fileicon.hg: Do not derive from Icon because that happens through LoadableIcon now. But do use _IMPLEMENTS_INTERFACE(Icon) here, because only a Glib::Object can actually implement an interface. svn path=/trunk/; revision=580
* Initial revisionMurray Cumming2003-01-071-0/+72