diff options
author | infirit <[email protected]> | 2014-05-10 00:19:46 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-28 08:44:02 +0100 |
commit | f2219d2afd13fd8dcfe6a35353828f4f143e8b48 (patch) | |
tree | 5714b398073883c8999a244c6f937d52887f2a13 /libmate-desktop/mate-rr-config.c | |
parent | 7056b2ab291f998496cf7ceb3cf24b37f407eb7f (diff) | |
download | mate-desktop-f2219d2afd13fd8dcfe6a35353828f4f143e8b48.tar.bz2 mate-desktop-f2219d2afd13fd8dcfe6a35353828f4f143e8b48.tar.xz |
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
Diffstat (limited to 'libmate-desktop/mate-rr-config.c')
-rw-r--r-- | libmate-desktop/mate-rr-config.c | 14 |
1 files changed, 9 insertions, 5 deletions
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 |