| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
See issue #100
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
Bug 786824
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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/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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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/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/src/action.hg: Make activate(const Glib::Variant<T_Value>& value)
call activate_variant(). Fix a typo in a comment. Bug #722896 comment 3.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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<>.
|
| |
|
|
|
|
| |
Sadly, we cannot do this until we can break ABI, I think.
|
|
|
|
|
|
| |
Renaming the original method to print_detaild_name_variant().
This method is new in this development cycle, so we may still
change it.
|
|
|
|
|
|
|
|
|
| |
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/src/action.hg: Add name_is_valid()
and print_detailed_name().
|
|
|
|
|
| |
* glib/src/action.hg: get_state() and get_state_hint() now return
a VariantBase instead of void. Bug #690134.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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/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.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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:
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* 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.
|
|
* 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().
|