summaryrefslogtreecommitdiff
path: root/glib/glibmm/error.cc
Commit message (Collapse)AuthorAgeFilesLines
* Derive Glib::Error from std::exception, remove Glib::ExceptionKjell Ahlstedt2019-12-141-3/+3
| | | | | | Glib::Error::what() returns const char* (was Glib::ustring). It overrides std::exception::what() that returns const char* and is noexcept. Fixes #23
* Glib: Add some Glib::Value<> specializationsKjell Ahlstedt2019-01-181-0/+21
| | | | | | | | | | | | | | | | * glib/glibmm/error.[cc|h]: Add operator bool(). Add Glib::Value<Glib::Error> which is needed in _WRAP_PROPERTY() in Gtk::MediaStream. * glib/glibmm/objectbase.[cc|h]: Add get_base_type(), which is necessary for one of the existing Value<> specializations to apply. ObjectBase is used in _WRAP_PROPERTY() in Glib::Binding. * glib/src/variant.[ccg|hg]: Add Glib::Value<VariantBase> which is needed in _WRAP_PROPERTY() in Gio:Action. * glib/src/varianttype.[ccg|hg]: Add Glib::Value<VariantType> which is needed in _WRAP_PROPERTY() in Gio:Action. All data types that occur in _WRAP_PROPERTY() must have correct Glib::Value<> specializations. In most cases missing Value<> specializations are noticed only during execution of code that calls an affected property_*() method.
* Update the Free Software Foundation address in copyright noticesKjell Ahlstedt2017-08-301-2/+1
| | | | Bug 786824
* C++11: .h/.cc files: Replace typedefs with using.Murray Cumming2016-03-311-1/+1
|
* Run clang-format on glib .cc files.Murray Cumming2016-02-261-37/+46
|
* Glib: More nullptr instead of 0.Murray Cumming2015-11-201-2/+2
|
* C++11: Replace throw() with noexcept.Murray Cumming2015-07-191-1/+1
|
* C++11: Use nullptr.Murray Cumming2015-07-161-10/+10
|
* Avoid shadowed variables.Murray Cumming2015-07-151-6/+6
| | | | | | | | | | Because this generally invites programming errors, though I am less concerned about shadowing of method names by parameter or variable names, which requires some tedious parameter renaming. In MatchInfo::set_gobject() the confusion between take_ownership and this.take_ownership does seem to have caused a programming error, hopefully now corrected.
* Glib::Error::register_init(): Call Glib::wrap_register_init()Kjell Ahlstedt2015-01-251-4/+2
| | | | | | | | | * glib/glibmm/error.cc: Call wrap_register_init() before wrap_init(). It was not necessary, when Error::register_init() was called from Glib::init(), but Error::register_init() can be called from other places (Glib::thread_init() and Glib::Error::throw_exception()). * glib/glibmm/init.cc: Not necessary to call Glib::wrap_register_init() before calling Glib::Error::register_init(). Bug #743466 (Mike Fleetwood).
* Remove the reduced API options and code, as discussed on mailing list.Murray Cumming2010-05-311-12/+0
| | | | | | | | | * configure.ac: Removed the --enable-api-exceptions, --enable-api-properties, --enable-api-vfuncs and --enable-api-default-signal-handlers options. * build/reduced.m4: Removed. * tools/m4/*.m4: * tools/pm/Output.pm: Remove any use of ifdefs and auto_ptr for reduced API. * *.[hg|ccg|h|cc]: Remove the idefed code.
* Get rid of all uses of GLIBMM_USING_STD()Daniel Elstner2009-08-161-8/+2
| | | | | | | | | | * glib/src/*.{ccg,hg}: Remove all uses of GLIBMM_USING_STD(). We definitely do not need this anymore, and probably never did. We never covered all symbols from namespace std anyway and never got any complaint about it. Also, be careful to always include the glibmmconfig.h header when it is needed. * glib/glibmm/*.{cc,h}: ditto. * glib/glibmmconfig.h.in: Clean up and re-indent.
* 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
* Clean up glib includes (Bug #563987)Jonathon Jongsma2008-12-101-2/+0
| | | | svn path=/trunk/; revision=749
* Include glib.h instead of gmessages.h or gtestutils.h so this builds withMurray Cumming2007-12-281-1/+4
| | | | | | | | | | | | 2007-12-28 Murray Cumming <murrayc@murrayc.com> * glib/glibmm/error.cc: * glib/glibmm/exception.cc: * glib/src/convert.ccg: * glib/src/date.ccg: Include glib.h instead of gmessages.h or gtestutils.h so this builds with all versions of glib. svn path=/trunk/; revision=474
* Merged changes from glibmm-2-10 branch.Murray Cumming2006-05-121-2/+13
|
* Don't export private API. Closes #163031.Benoît Dejean2005-01-061-1/+1
| | | | | | | | | | | | | 2005-01-06 Benoît Dejean <TazForEver@dlfp.org> * glib/glibmm/dispatcher.cc: * glib/glibmm/error.cc: * glib/glibmm/exceptionhandler.cc: * glib/glibmm/main.cc: * glib/glibmm/threadpool.cc: * glib/glibmm/ustring.cc: * glib/glibmm/wrap.cc: Don't export private API. Closes #163031.
* GTKMM_ m4 tests and #defines are now prefixed with GLIBMM_Murray Cumming2003-01-221-1/+1
| | | | | | 2003-01-22 Murray Cumming <murrayc@usa.net> * GTKMM_ m4 tests and #defines are now prefixed with GLIBMM_
* Initial revisionMurray Cumming2003-01-071-0/+187