Files
gtk/gdk
Emmanuele Bassi 2cbe094b91 Allow binding GdkContentFormatsBuilder
GdkContentFormatsBuilder is currently not introspectable, as it does not
have a GType. We can turn it into a boxed type, but we need to implement
memory management for it.

The current gdk_content_formats_builder_free() function returns a newly
constructed value, so we cannot use it as a GBoxedFreeFunc; additionally
copying a GdkContentFormatsBuilder contents would make it a bit odd, as
you could get multiple identical GdkContentFormats out of the copies.

A simple approach is to model the GdkContentFormatsBuilder API to follow
the GBytes one: use reference counting for memory management, and have
a function to release a reference, return a GdkContentFormats, and reset
the GdkContentFormatsBuilder state.

For language bindings, we can provide a get_formats() function that
returns the GdkContentFormats instance and resets the builder instance,
leaving the reference count untouched.

For C convenience we can keep gdk_content_formats_builder_free(), and
make it a wrapper around gdk_content_formats_builder_get_formats(), with
the guarantee that it'll free the builder instance regardless of its
current reference count.

https://bugzilla.gnome.org/show_bug.cgi?id=793097
https://blogs.gnome.org/otte/2018/02/03/builders/
2018-02-03 16:24:13 +01:00
..
2018-02-03 12:07:10 +01:00
2018-02-03 12:07:10 +01:00
2018-02-03 12:07:10 +01:00
2017-05-03 14:47:14 +01:00
2018-01-14 17:05:04 -05:00
2018-02-03 12:07:10 +01:00
2018-02-03 12:07:10 +01:00
2017-01-18 04:13:56 +01:00
2017-12-04 23:52:48 -08:00
2017-12-26 14:39:24 -05:00
2017-11-29 20:16:43 -05:00
2017-12-26 14:39:24 -05:00
2017-12-26 14:39:24 -05:00
2016-08-23 21:01:44 +02:00
2016-08-23 21:01:44 +02:00
2018-01-16 23:32:01 -05:00
2018-01-16 23:32:01 -05:00
2017-12-26 14:39:24 -05:00
2017-12-14 04:39:22 +01:00
2016-12-05 15:02:47 +01:00
2017-12-26 14:39:24 -05:00
2017-12-26 14:39:24 -05:00
2017-12-26 14:39:24 -05:00
2018-01-14 17:05:04 -05:00
2018-01-14 17:05:04 -05:00
2018-01-14 17:05:04 -05:00
2018-01-14 17:05:04 -05:00
2017-11-01 14:17:20 -04:00
2017-11-17 10:51:55 -05:00
2017-12-13 23:39:03 -05:00
2017-12-13 23:39:03 -05:00
2017-12-26 14:39:24 -05:00
2017-12-14 03:05:34 +01:00
2018-01-12 22:34:22 +01:00
2017-10-19 12:18:52 +02:00
2017-12-14 03:05:34 +01:00