summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);