summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-config.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-09 23:10:14 +0200
committerinfirit <[email protected]>2014-11-28 08:44:02 +0100
commit7056b2ab291f998496cf7ceb3cf24b37f407eb7f (patch)
tree64000a3ee90022de10c9d8c74e72de31a5b594db /libmate-desktop/mate-rr-config.c
parent48df7a0c71a2df4050abae40ec9ca2b35dee7988 (diff)
downloadmate-desktop-7056b2ab291f998496cf7ceb3cf24b37f407eb7f.tar.bz2
mate-desktop-7056b2ab291f998496cf7ceb3cf24b37f407eb7f.tar.xz
Turn MateRRScreen into a GObject
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
Diffstat (limited to 'libmate-desktop/mate-rr-config.c')
-rw-r--r--libmate-desktop/mate-rr-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmate-desktop/mate-rr-config.c b/libmate-desktop/mate-rr-config.c
index 1efa124..abdb1fc 100644
--- a/libmate-desktop/mate-rr-config.c
+++ b/libmate-desktop/mate-rr-config.c
@@ -1849,7 +1849,7 @@ crtc_assignment_apply (CrtcAssignment *assign, guint32 timestamp, GError **error
* status.
*/
- gdk_x11_display_grab (gdk_screen_get_display (assign->screen->gdk_screen));
+ gdk_x11_display_grab (gdk_screen_get_display (assign->screen->priv->gdk_screen));
/* Turn off all crtcs that are currently displaying outside the new screen,
* or are not used in the new setup
@@ -1913,7 +1913,7 @@ crtc_assignment_apply (CrtcAssignment *assign, guint32 timestamp, GError **error
mate_rr_screen_set_primary_output (assign->screen, assign->primary);
- gdk_x11_display_ungrab (gdk_screen_get_display (assign->screen->gdk_screen));
+ gdk_x11_display_ungrab (gdk_screen_get_display (assign->screen->priv->gdk_screen));
return success;
}