summaryrefslogtreecommitdiff
path: root/gio/src/action.hg
Commit message (Collapse)AuthorAgeFilesLines
* Gio::Action: Improve the documentationKjell Ahlstedt2022-06-061-17/+18
| | | | See issue #100
* gio/src/*.hg: Mark classes and functions with GIOMM_APIChun-wei Fan2020-03-071-2/+2
| | | | | | This prepares the build to export symbols using compiler directives, in our bid to drop gendef.exe. We will also mark pre-declarations of usage of glibmm class items with GLIBMM_API as well.
* Put _WRAP_VFUNC in protected sectionsKjell Ahlstedt2019-03-151-0/+1
|
* Gio::Action: Add exception specs to errthrowKjell Ahlstedt2017-09-291-1/+1
|
* Update the Free Software Foundation address in copyright noticesKjell Ahlstedt2017-08-301-2/+1
| | | | Bug 786824
* Gio::Action: #include <glibmm/variant.h> in hgDaniel Boles2017-02-021-7/+1
| | | | | | | | | | | | | Currently, it is included indirectly, via 3 other headers. This is brittle. Without that, users of action.h would have to manually include variant.h to use methods returning the forward-declared VariantBase, which isn’t very helpful. Plus, the header uses types like Variant<> templates and VariantContainerBase, which were never forward-declared. Including it directly makes the dependency more obvious and less brittle and spares us from having to write a bunch more forward-declarations. https://bugzilla.gnome.org/show_bug.cgi?id=777953
* Fix some TODO comments requiring ABI breakKjell Ahlstedt2016-12-271-4/+1
| | | | | | | | * gio/src/gio_vfuncs.defs: Add GAsyncResult::is_tagged(): * gio/src/action.hg: get_state_hint_variant() returns VariantContainerBase. * gio/src/actiongroup.hg: Remove the deprecated get_action_state_hint(). * gio/src/asyncresult.hg: Add is_tagged_vfunc(). * glib/src/checksum.hg: update(): The length parameter is a gssize.
* Remove deprecated API.Murray Cumming2016-11-141-4/+0
|
* Remove trailing whitespace.Murray Cumming2016-05-161-5/+5
|
* C++11: .hg/.ccg files: Replace typedefs with using.Murray Cumming2016-03-311-6/+6
|
* Fix the build with --disable-deprecated-apiKjell Ahlstedt2015-12-051-0/+2
| | | | | | | | | | | | | | | | * examples/thread/threadpool.cc: If --disable-deprecated-api, just print a message and exit. * gio/src/<several>.hg: Add _CONFIGINCLUDE(giommconfig.h). * gio/src/menuitem.ccg: Add a missing _DEPRECATE_IFDEF_START/_END pair. * glib/glibmm/sarray.h: * glib/glibmm/threadpool.[cc|h]: #include <glibmmconfig.h> before ifndef GLIBMM_DISABLE_DEPRECATED. * glib/src/filelist.am: Remove glibmm_files_deprecated_hg. List deprecated files in glibmm_files_any_hg. The config file must be included before #ifndef xxx_DISABLE_DEPRECATED both in the .h file and in the .cc file, or else deprecated API is not properly disabled by --disable-deprecated-api.
* C++11: Some use of the auto keyword.Murray Cumming2015-07-151-4/+4
|
* Gio::Action, ActionGroup: Fix critical messages from vfuncsKjell Ahlstedt2015-03-171-4/+2
| | | | | | | | | * glib/glibmm/wrap.h: Add unwrap_copy(const T& obj). * gio/src/action.hg: * gio/src/actiongroup.hg: Make vfuncs that return a GVariant* use the new Glib::unwrap_copy() overload by adding the _WRAP_VFUNC parameter refreturn_ctype. It avoids a critical message if Glib::VariantBase:: gobj() == 0, which is not an error in these functions. Bug #705124.
* Gio::Action etc: Add keep_return to some _WRAP_VFUNC()Kjell Ahlstedt2015-03-171-7/+5
| | | | | | | | | | | * gio/src/action.hg: Add keep_return to get_name_vfunc(), get_parameter_type_vfunc() and get_state_type_vfunc(). * gio/src/actiongroup.hg: Add keep_return to get_action_parameter_type_vfunc() and get_action_state_type_vfunc(). * gio/src/dbusobject.hg: Add keep_return to get_object_path_vfunc(). * gio/src/tlspassword.hg: Add keep_return to get_default_warning_vfunc(). The C code that calls these functions does not get its own copy of the returned object. The called function must store a copy. Bug #705124.
* Add an empty line after @newin where it's missingKjell Ahlstedt2014-12-111-0/+2
| | | | | | | | | | | | | | | | * gio/src/action.hg: * gio/src/cancellable.hg: * gio/src/charsetconverter.hg: * gio/src/mount.hg: * gio/src/notification.hg: * gio/src/simpleaction.hg: * gio/src/socket.hg: * glib/src/datetime.hg: * glib/src/glib_docs_override.xml: * glib/src/keyfile.hg: * glib/src/variant.hg: Add an empty line after @newin where it's needed in order to avoid bad side effects in the documentation. Doxygen assumes that @newin is followed by a paragraph that describes what is new.
* Fix some doxygen warningsKjell Ahlstedt2014-01-311-4/+4
| | | | | | | | | | | | | | | | | * gio/src/action.hg: * gio/src/actionmap.hg: * gio/src/dbusconnection.hg: * gio/src/dbusproxy.hg: * gio/src/file.hg: * gio/src/fileinfo.hg: * gio/src/menuitem.hg: * gio/src/mount.hg: * gio/src/settings.hg: * gio/src/simpleaction.hg: * gio/src/threadedsocketservice.hg: * glib/glibmm/base64.h: * glib/glibmm/refptr.h: * glib/src/variant.hg: Fix some warnings in doxygen.log.
* Gio::Action: Add parse_detailed_name() and parse_detailed_name_variant()Kjell Ahlstedt2014-01-301-1/+44
| | | | | | | * gio/src/action.hg: Add parse_detailed_name() and parse_detailed_name_variant(). * tools/m4/initialize_glib.m4: Add _INITIALIZATION of Glib::ustring& from gchar*.
* Gio::Action: Fix activate(const Glib::Variant<T_Value>& value)Kjell Ahlstedt2014-01-251-2/+2
| | | | | * gio/src/action.hg: Make activate(const Glib::Variant<T_Value>& value) call activate_variant(). Fix a typo in a comment. Bug #722896 comment 3.
* Action/ActionGroup: Make some parameter parameters optional.Murray Cumming2013-10-081-0/+4
| | | | | | | * gio/src/action.[hg|ccg]: Add an activate() method that takes no parameter. * gio/src/actiongroup.hg: activate_action(): Add a method overload that takes no parameter parameter.
* Action: print_detailed_name(): Remove the action_name parameter.Murray Cumming2013-10-081-7/+4
| | | | | | * gio/src/action.hg: This is a non-static version of the method, so we can just use get_name(). We already use the instance to get the state type.
* Docs: Add Action* and MenuItem docs.Murray Cumming2013-10-081-4/+49
|
* Gio::Action: Add templated change_state() and activate().Murray Cumming2013-08-091-20/+45
| | | | | | | | | | * gio/src/action.hg: Also adding change_state_variant() and activate_variant() for them to call, and deprecating the change_state() and activate() methods that take VariantBase. Also added change_state() and activate() templated methods that take Variant<T_Value> to preserve API for application code that previously called change_state(VariantBase) with a Variant<>.
* Gio::Action:: get_state_hint(): Correct a check.Murray Cumming2013-08-091-2/+9
|
* Gio::Action: Add TODOs to templatize change_state() and activate().Murray Cumming2013-08-061-0/+34
| | | | Sadly, we cannot do this until we can break ABI, I think.
* Gio::Action: print_detailed_name() Make this templated.Murray Cumming2013-08-061-1/+16
| | | | | | Renaming the original method to print_detaild_name_variant(). This method is new in this development cycle, so we may still change it.
* Gio::Action: Make get_state() templated.Murray Cumming2013-08-061-4/+43
| | | | | | | | | And do the same for get_state_hint(), renaming the originals to get_state_variant() and get_state_hint_variant(). We had already decided to break the ABI of these because the method signatures in the stable release were useless, so this is OK. We use the same technique elsewhere in glibmm and gtkmm for Glib::ValueBase.
* Gio::Action: Wrap some new methods.Murray Cumming2013-07-311-0/+6
| | | | | * gio/src/action.hg: Add name_is_valid() and print_detailed_name().
* Gio::Action: Fix API for get_state() and get_state_hint().Andrew Potter2013-07-291-67/+2
| | | | | * glib/src/action.hg: get_state() and get_state_hint() now return a VariantBase instead of void. Bug #690134.
* Gio::Action: Add convenience methods for bool-state (toggle) actions.Murray Cumming2013-07-271-0/+20
| | | | | | | | | | | | | * gio/src/simpleaction.[hg|ccg]: Add constructors and create_bool() methods that take a bool instead of a VariantBase for the state. * gio/src/action.[hg|ccg]: Add get_state_bool() and change_state(bool). It might be better to put these in a derived class, but I still hope that the developers of the C API decide not to make this common case so awkward: https://bugzilla.gnome.org/show_bug.cgi?id=704392#c4
* Gio::Action: Add more documentation of get_state_hint() and get_state().Kjell Ahlstedt2012-12-281-0/+63
| | | | | | * gio/src/action.hg: get_state_hint() and get_state() returns void, which makes them useless. That can't be fixed until the next ABI break. Explain in the documentation what to do instead of calling these methods. Bug #690134.
* ActionGroup, DBusObject: Ensure vfunc callbacks return valid memory.José Alburquerque2012-03-251-1/+2
| | | | | | | | | * gio/src/action.hg (get_name_vfunc_callback): * gio/src/dbusobject.hg (get_object_path_vfunc_callback): (get_interfaces_vfunc_callback): Ensure that the return values of the virtual functions of these callbacks are properly copied by correcting the appropriate conversions so that the callbacks don't return empty memory.
* gmmproc: Don't include <glibmm.h> by default in generated files.José Alburquerque2011-10-251-0/+7
| | | | | | | | | | | | * tools/m4/base.m4: Include <glibmm/ustring.h> and <sigc++/sigc++.h> by default in header files of generated files in modules other than glibmm. This should make compilation faster for those modules. * gio/src/*.{h,cc}g: * gio/giomm/slot_async.cc: Adjust includes according to the above change. Bug #662597
* Application, {,Simple}Action{,Group}: Update @newins{}'s.José Alburquerque2011-10-101-1/+1
| | | | | | | | | * gio/src/action.hg: * gio/src/application.hg: * gio/src/simpleaction.hg: * gio/src/simpleactiongroup.hg: * gio/src/applicationcommandline.hg: Add bug URL to a TODO.
* Re-add Application and related class so they can be finished.José Alburquerque2011-10-091-0/+106
| | | | | | | | | | | | | | | | | * gio/giomm.h: * gio/src/action.ccg: * gio/src/action.hg: * gio/src/actiongroup.ccg: * gio/src/actiongroup.hg: * gio/src/application.ccg: * gio/src/application.hg: * gio/src/applicationcommandline.ccg: * gio/src/applicationcommandline.hg: * gio/src/filelist.am: * gio/src/simpleaction.ccg: * gio/src/simpleaction.hg: * gio/src/simpleactiongroup.ccg: * gio/src/simpleactiongroup.hg:
* Remove Application and friends, because they are still not ready.Murray Cumming2011-09-261-106/+0
| | | | | | | | | | | | * gio/src/action.[hg|ccg]: * gio/src/actiongroup..[hg|ccg]: * gio/src/application.[hg|ccg]: * gio/src/applicationcommandline..[hg|ccg]: * gio/src/simpleaction..[hg|ccg]: * gio/src/simpleactiongroup.[hg|ccg]: Removed. * gio/src/filelist.am: * goi/giomm.h: Do not mention them. See bug #637445#c29
* Action, ActionGroup: Wrap virtual functions.José Alburquerque2011-09-221-1/+18
| | | | | | | | * gio/src/gio_vfuncs.defs: Add virtual function definitions for the Action and ActionGroup classes. * gio/src/action.hg: * gio/src/actiongroup.hg: Wrap the virtual functions. * tools/m4/convert_gio.m4: Correct a VariantType return conversion.
* giomm: Add Action class wrapping GAction.José Alburquerque2011-09-201-0/+89
* gio/src/action.{ccg,hg}: * gio/src/filelist.am: Add the new sources wrapping the methods and signals of GAction and include them in the list of files to be built. * tools/extra_defs_gen/generate_defs_gio.cc: Add G_TYPE_ACTION to the list of types for which signals and properties should be generated. * gio/src/gio_signals.defs: * gio/src/gio_methods.defs: Regenerate to get the new methods and properties being wrapped. * gio/src/gio_extra_objects.defs: Add Action to the list of extra objects so gmmproc's documentation generation does not produce warnings because of it. Also added DBusNodeInfo and Proxy. * tools/m4/convert_gio.m4: Alphabetized the conversion by groups pertaining to types. Removed the Variant return conversions which take copies. * glib/src/variant.hg: Moved the conversions here because they are specific to the methods in this class, specifically get_child() and get().