From f2219d2afd13fd8dcfe6a35353828f4f143e8b48 Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 10 May 2014 00:19:46 +0200 Subject: Add support for GObjectIntrospection Turned all GnomeRR structures into boxed types, then added the needed annotations and the Makefile.am bits. Does not yet include API changes, but should bind (awfully) all of libgnome-desktop. Based on gnome commit: cad94246fb5be76482212407a380cd75f9e7b932 url: https://git.gnome.org/browse/gnome-desktop/commit/?id=cad94246fb5be76482212407a380cd75f9e7b932 --- libmate-desktop/mate-rr-config.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'libmate-desktop/mate-rr-config.c') diff --git a/libmate-desktop/mate-rr-config.c b/libmate-desktop/mate-rr-config.c index abdb1fc..27ecd1a 100644 --- a/libmate-desktop/mate-rr-config.c +++ b/libmate-desktop/mate-rr-config.c @@ -84,7 +84,11 @@ static CrtcAssignment *crtc_assignment_new (MateRRScreen *screen, GError **error); static void crtc_assignment_free (CrtcAssignment *assign); static void output_free (MateOutputInfo *output); -static MateOutputInfo *output_copy (MateOutputInfo *output); +static MateOutputInfo *output_copy (const MateOutputInfo *output); +static MateRRConfig * mate_rr_config_copy (const MateRRConfig *config); + +G_DEFINE_BOXED_TYPE (MateOutputInfo, mate_rr_output_info, output_copy, output_free) +G_DEFINE_BOXED_TYPE (MateRRConfig, mate_rr_config, mate_rr_config_copy, mate_rr_config_free) typedef struct Parser Parser; @@ -627,7 +631,7 @@ output_free (MateOutputInfo *output) } static MateOutputInfo * -output_copy (MateOutputInfo *output) +output_copy (const MateOutputInfo *output) { MateOutputInfo *copy = g_new0 (MateOutputInfo, 1); @@ -1118,7 +1122,7 @@ mate_rr_config_save (MateRRConfig *configuration, GError **error) } static MateRRConfig * -mate_rr_config_copy (MateRRConfig *config) +mate_rr_config_copy (const MateRRConfig *config) { MateRRConfig *copy = g_new0 (MateRRConfig, 1); int i; @@ -1238,8 +1242,8 @@ mate_rr_config_apply_with_time (MateRRConfig *config, * See the documentation for mate_rr_config_apply_from_filename(). This * function simply calls that other function with a filename of * mate_rr_config_get_intended_filename(). - - * @Deprecated: 2.26: Use mate_rr_config_apply_from_filename() instead and pass it + * + * Deprecated: 2.26: Use mate_rr_config_apply_from_filename() instead and pass it * the filename from mate_rr_config_get_intended_filename(). */ gboolean -- cgit v1.2.1