summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-config.c
AgeCommit message (Collapse)AuthorFilesLines
2019-03-17[Security] Use 'g_strlcpy' instead of 'strcpy'Pablo Barciela1-1/+1
Fixes Clang static analyzer warnings: mate-rr-config.c:549:3: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 strcpy (output->priv->vendor, "???"); ^~~~~~ mate-desktop-item.c:2118:2: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 strcpy (the_exec, exec); ^~~~~~
2019-01-29[mate-rr] Avoid deprecated g_type_class_add_privateWu Xiaotian1-4/+2
2018-08-15mate-rr-config: replace deprecated gdk_flushraveit651-1/+3
2015-09-02mate-rr: unify laptop identification by output nameMonsta1-16/+1
adapted from https://git.gnome.org/browse/gnome-desktop/commit?id=113c7c8252531665d9e9090c6f48cd3f6b16e120 and https://git.gnome.org/browse/gnome-desktop/commit?id=d9f5e5f58e86798c48995e1abc36e7c43174d132
2014-11-28Avoid a possible crashinfirit1-1/+2
When the spice client goes to fullscreen it (temporarily) turns all xrandr outputs off (for some reason). This causes gnome-settings-daemon to crash (and respawn and reset the old screen size) due to a NULL deref in libgnome-desktop. Based on gnome-desktop commit: b8849c08adb1ba1b55d1a3511dd9eefd00504dc0 Patch by: Alex Larsson Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=646714
2014-11-28Fix two problems that causes m-s-d to crash at startinfirit1-1/+2
We need to ref outputs when we are copying them in the parser, and we need to avoid confusing i and j, even if they both have dots. Based on gnome-desktop commit: 11880c8bfd7b3f1edde58b8e83e46ebd59a44311 From: Matthias Clasen <[email protected]>
2014-11-28Disallow null filenames passed to mate_rr_config_load_filename()infirit1-1/+10
Based on gnome-desktop commit: 7c2e51427fff29f1582eb5ed035f8c7637ea908f From: Federico Mena Quintero <[email protected]>
2014-11-28Turn GnomeRRConfig and GnomeOutputInfo into GObjectsinfirit1-423/+414
Based on gnome-desktop commits: 1d1f8ef64f404eccb29d384a75939701327e8e77 2c7a2e90fee98ff61e530098bc962a65dec670bc 7436f759bec00d87f597ef0b6945da8fa8969e85 From: Giovanni Campagna <[email protected]> Gnome Bug: https://bugzilla.gnome.org/show_bug.cgi?id=630913
2014-11-28rr: unset primary on displays that are offinfirit1-1/+3
Based on gnome-desktop commit: 4dd5a30269d71bbe1da884a849db2290df5544c9 From: William Jon McCann <[email protected]>
2014-11-28rr: add api for ensuring a primary display is set in configinfirit1-0/+64
Based on gnome-desktop commit: f632805c549053a548877785e3e624b1fe687f23 From: William Jon McCann <[email protected]>
2014-11-28Add support for GObjectIntrospectioninfirit1-5/+9
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
2014-11-28Turn MateRRScreen into a GObjectinfirit1-2/+2
Rework MateRRScreen so that it is a full GObject, and all its data is moved to MateScreenPrivate. GObject's are more supported when it comes to introspection and bindings, in particular wrt constructors. Therefore, this is a necessary step for useful introspection generation. https://bugzilla.gnome.org/show_bug.cgi?id=630913 Based on gnome commit 4d2a27d55bcf9bb8de170ae6c6540724125aafa3 url: https://git.gnome.org/browse/gnome-desktop/commit/?id=4d2a27d55bcf9bb8de170ae6c6540724125aafa3
2014-11-28don't leak memorymonsta1-2/+6
Closes https://github.com/mate-desktop/mate-desktop/pull/138
2014-11-28va_start should be paired with va_endmonsta1-0/+2
Closes https://github.com/mate-desktop/mate-desktop/pull/137
2013-07-24Move include files and remove old libmate and libmateui foldersStefano Karapetsas1-1/+1
2012-11-18fixed incorrect fsf addresses.Steve Zesch1-2/+2
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+1913