| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
When C documentation is converted to C++ documentation, remove sentences
that contain g_free, g_strfreev, g_list_free or g_slist_free.
https://mail.gnome.org/archives/gtkmm-list/2016-August/msg00017.html
|
|
|
|
|
|
|
| |
This function was superseded by gtk_extra_objects.defs 6 years ago.
The substitution gtk_drag_source => Gtk::DragSource is lost with this
patch, but that substitution was wrong. There is no Gtk::DragSource
class or namespace.
|
|
|
|
| |
Because this simplifies the code.
|
|
|
|
|
|
| |
gdk-pixbuf has added macros such as GDK_PIXBUF_DEPRECATED* and
GDK_PIXBUF_AVAILABLE* in the header files. h2def.py must recognize those
macros in order to successfully decode the function declarations.
|
|
|
|
|
|
|
|
| |
* tools/m4/vfunc.m4:
* tools/pm/Output.pm:
* tools/pm/WrapParser.pm: Add the optional argument err_return_value in
_WRAP_VFUNC. This return value, if specified, applies only when the C++ vfunc
throws an exception, which is propagated to the C callback function.
|
|
|
|
|
|
|
| |
tools/m4/base.m4: At the end of the _END macro, discard all remaining sections.
m4_divert(-1) + m4_undivert() was probably meant to do just that, but it does
nothing. m4_divert(-1) + m4_undivert, without parentheses, discards all
remaining sections. Bug #756593
|
| |
|
|
|
|
|
|
| |
* gio/src/dbusproxy.hg: fix _WRAP_METHOD usage
* tools/m4/convert_gio.m4: update converstion definition - use
Gio::DBus::Proxy instead of Proxy.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tools/m4/enum.m4:
* tools/m4/gerror.m4: Surround code and documentation by #ifndef
xxx_DISABLE_DEPRECATED, if it's deprecated.
* tools/pm/DocsParser.pm: lookup_enum_documentation(): Move the parsing of
options to WrapParser. Add deprecation docs, if any.
* tools/pm/Enum.pm: build_element_list(): Move the parsing of options to
WrapParser.
* tools/pm/Output.pm: output_wrap_enum(), output_wrap_enum_docs_only(),
output_wrap_gerror(): Handle deprecation docs.
* tools/pm/WrapParser.pm: Parse options in the new on_wrap_any_enum() function.
|
|
|
|
|
|
|
|
| |
* glib/glibmm/property.h: More code within #ifndef DOXYGEN_SHOULD_SKIP_THIS.
* glib/src/bytearray.hg: Change parameter name index_ to index.
* tools/pm/DocsParser.pm: When the C parameter name does not coincide with
the C++ name, change to the C++ name in the documentation also when the C
name ends with an underscore.
|
|
|
|
|
|
|
|
|
|
| |
operations.
If class contains movable fields, custom move constructor and move
assignment operator should be provided. Use macro _CUSTOM_MOVE_OPERATIONS
for NOT generating default move operations.
https://bugzilla.gnome.org/show_bug.cgi?id=756593
|
| |
|
| |
|
|
|
|
|
| |
tools/extra_defs_gen/generate_extra_defs.cc: Mark deprecated signals and
properties as such in the generated .defs file.
|
|
|
|
|
|
|
|
|
| |
* tools/pm/GtkDefs.pm:
* tools/pm/Property.pm: Search for (deprecated #t) in the *_signals.defs file.
* tools/pm/Output.pm:
* tools/pm/WrapParser.pm: Warn if a signal, property or child property is
deprecated in the .defs file, but not in the _WRAP_* macro, and the whole
file is not deprecated (no _IS_DEPRECATED).
|
| |
|
|
|
|
|
|
| |
* tools/m4/vfunc.m4: Propagate a Glib::Error exception to GError** error.
Don't throw an exception in the callback function, called from C code.
Bug #762437
|
|
|
|
|
|
|
| |
By changing
) dnl
to
)dnl
|
|
|
|
|
|
|
|
|
| |
* tools/pm/Function.pm:
* tools/pm/Output.pm: Accept {NULL} or {!NULL} after the name of a string
parameter in _WRAP_METHOD. It specifies how to translate an empty string to
a C string. {NULL}: nullptr, {!NULL}: pointer to an empty string.
Both {NULL} and {!NULL} can be useful, because the default translation is
different for mandatory and optional ({?}) parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* .gitignore: signalproxy.h file is no more generated, so it has been
removed from ignored list.
* gio/src/application.{ccg|hg}: don't use old-style SignalProxy class.
* glib/glibmm/filelist.am: add signalproxy.h file to distributed files
list.
* gio/glibmm/signalproxy.h: add implementation of SignalProxy and
SignalProxyDetailedAnyType.
* glib/src/filelist.am:
* glib/src/signalproxy.h.m4: signalproxy.h is not generated, thus
remove m4 file.
* tools/m4/signal.m4: use new SignalProxy class instead of
SignalProxy*.
|
|
|
|
|
|
| |
h2def.py misunderstood function declarations where the name of a parameter
begins with const, e.g. ClutterBindConstraint *constraint.
https://mail.gnome.org/archives/gtkmm-list/2016-January/msg00004.html
|
|
|
|
|
|
| |
Don't repeat the virtual declaration from Glib::ObjectBase's destructor.
Instead use override to show that we expect the base destructor to
be virtual.
|
|
|
|
|
|
|
|
|
|
| |
* tools/m4/base.m4: If both _CONFIGINCLUDE() and _IS_DEPRECATED are used
in the .hg file, then #include <xxxconfig.h> is included before
ifndef xxx_DISABLE_DEPRECATED in the generated .cc file. This is useful if
the mm module is configured with --disable-deprecated-api, because
xxx_DISABLE_DEPRECATED is defined in the config file. The .cc file can be
compiled, but does not generate any executable code. No need to exclude it
from the build by tampering with the filelist.am file.
|
|
|
|
|
|
|
|
| |
* tools/pm/DocsParser.pm: Replace NULL by nullptr, when C comments are
converted to C++ comments. In many cases "an empty string" would be a better
replacement text, but it's difficult to automatically decide when "nullptr"
is not correct.
* tools/pm/Output.pm: Use nullptr where appropriate in comments.
|
|
|
|
|
|
|
| |
* tools/pm/Output.pm: A test whether a parameter is optional was messed up
in such a way that it was always true. The test is just a precaution.
In all normal cases the result of a correct test is also true. Probably
the error has not affected the code generation from any correct .hg file.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
It doesn't seem useful as private. The other classes already do this
correctly.
|
| |
|
| |
|
| |
|
|
|
|
| |
This is useful for standard containers, for instance.
|
| |
|
|
|
|
|
|
|
| |
These were previously implicitly generated by the compiler,
but are no longer generated because we now have explicit move
operations.
Being explicit seems like a better way to preserve ABI anyway.
|
|
|
|
|
|
|
|
|
|
|
| |
This is generally a good idea because it lets standard containers
use the swap() while maintaining their own noexcept.
This would not be an ABI break, hopefully, because this is an inline
method in the header anyway.
We have recently added the noexcept to the member swap() method,
but hopefully that is not an ABI break either. Removing noexcept
would be an ABI break, I think.
|
|
|
|
|
| |
As in _CLASS_BOXEDTYPE().
This can then be used by std::swap(), used by standard containers.
|
|
|
|
| |
Roughly as in _CLASS_BOXEDTYPE().
|
|
|
|
| |
The same as in _CLASS_BOXEDTYPE().
|
|
|
|
|
|
|
|
|
|
| |
Because _CLASS_OPAQUE_REFCOUNTED already generates a comment
telling us not to derive from them, presumably because they can
only be instantiated by reinterpret_cast<>ing a base C struct.
Ideally, _CLASS_OPAQUE_REFCOUNTED would add the final keyword,
but the class line is is not generated, so that would be a little
difficult.
|
|
|
|
| |
And move it (and the = deleted copy operations) to public.
|
|
|
|
|
| |
The (virtual base) ObjectBase's move operations will not be called
multiple times, so this might be useless, but it seems more complete.
|
| |
|
|
|
|
|
| |
Generate move constructor and move assignment operator.
These might never be used, but it seems generally wise to have them.
|
|
|
|
|
|
|
|
|
| |
Because this can let standard containers more efficiently reallocate
memory while still preserving their own noexcept guarantees.
I found out about this in Scott Meyer's Effective Modern C++11:
Item 14.
Likewise make swap() noexcept because we use it in our noexcept
move assignment operator.
|
|
|
|
|
|
|
|
| |
* tools/gen_scripts/gio_generate_enums.sh:
* tools/gen_scripts/gio_generate_methods.sh:
* tools/gen_scripts/glib_generate_enums.sh:
* tools/gen_scripts/glib_generate_methods.sh: Don't collect information
from header files with names ending in private.h.
|
|
|
|
|
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=753013
* tools/generate_wrap_init.pl.in: add support for nested namespaces in
--namespace parameter, i.e. --namespace=Gst::Bad. It requires to
store all classes from module at least in Gst::Bad namespace, but
allows to use this namespace in wrap_init.h class.
|
|
|
|
|
|
|
|
|
| |
* tools/gen_scripts/gio_generate_enums.sh:
* tools/gen_scripts/gio_generate_extra_defs.sh:
* tools/gen_scripts/glib_generate_enums.sh:
* tools/gen_scripts/glib_generate_methods.sh: These scripts patch the
generated .defs files. Update them like gtkmm's gtk_generate_extra_defs.sh,
i.e. more comments and an option to regenerate the patch file.
|
| |
|