summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-08 18:41:29 +0200
committerinfirit <[email protected]>2014-11-30 18:28:23 +0100
commit94eaf6caec20abd9b3265e99aab722e8f4851972 (patch)
tree44463a5c749dfd4cf3fc9e4cddd880a323a1e2bc
parente1d4af90d002d0409f5838e496ae4f944d7ca512 (diff)
downloadmate-control-center-94eaf6caec20abd9b3265e99aab722e8f4851972.tar.bz2
mate-control-center-94eaf6caec20abd9b3265e99aab722e8f4851972.tar.xz
Adapt to API changes in MateRRScreen
gnome_rr_screen_new does not accept a callback anymore, we need to use the "screen-changed" signal Based on gnome-control-center commit: 66e8e903be8ad25fe3b1386d1fbda75359959e97 From: Giovanni Campagna <[email protected]>
-rw-r--r--capplets/display/xrandr-capplet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
index e0041bc9..2460028a 100644
--- a/capplets/display/xrandr-capplet.c
+++ b/capplets/display/xrandr-capplet.c
@@ -2062,7 +2062,7 @@ ensure_current_configuration_is_saved (void)
* that there *will* be a backup file in the end.
*/
- rr_screen = mate_rr_screen_new (gdk_screen_get_default (), NULL, NULL, NULL); /* NULL-GError */
+ rr_screen = mate_rr_screen_new (gdk_screen_get_default (), NULL); /* NULL-GError */
if (!rr_screen)
return;
@@ -2484,8 +2484,8 @@ run_application (App *app)
return;
}
- app->screen = mate_rr_screen_new (gdk_screen_get_default (),
- on_screen_changed, app, &error);
+ app->screen = mate_rr_screen_new (gdk_screen_get_default (), &error);
+ g_signal_connect (app->screen, "screen-changed", G_CALLBACK (on_screen_changed), app);
if (!app->screen)
{
error_message (NULL, _("Could not get screen information"), error->message);