diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2010-11-28 17:07:24 +0100 |
---|---|---|
committer | Giovanni Campagna <gcampagna@src.gnome.org> | 2010-11-28 17:07:24 +0100 |
commit | 66e8e903be8ad25fe3b1386d1fbda75359959e97 (patch) | |
tree | 84f872b2d6ba4ffa55855190e1c95d341c4d36b6 | |
parent | 3eb3ca4506624fb537c55796d1397eb5f9b8da4b (diff) | |
download | gnome-control-center-gobject-gnomerr.tar.gz |
Adapt to API changes in GnomeRRScreengobject-gnomerr
gnome_rr_screen_new does not accept a callback anymore, we need
to use the "screen-changed" signal
-rw-r--r-- | panels/display/xrandr-capplet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/panels/display/xrandr-capplet.c b/panels/display/xrandr-capplet.c index 3327bd595..3dbe9f9cf 100644 --- a/panels/display/xrandr-capplet.c +++ b/panels/display/xrandr-capplet.c @@ -2150,7 +2150,7 @@ ensure_current_configuration_is_saved (void) * that there *will* be a backup file in the end. */ - rr_screen = gnome_rr_screen_new (gdk_screen_get_default (), NULL, NULL, NULL); /* NULL-GError */ + rr_screen = gnome_rr_screen_new (gdk_screen_get_default (), NULL); /* NULL-GError */ if (!rr_screen) return; @@ -2490,8 +2490,8 @@ run_application (void) return NULL; } - app->screen = gnome_rr_screen_new (gdk_screen_get_default (), - on_screen_changed, app, &error); + app->screen = gnome_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); |