From 2fcec22d1494b0cfb6a45dfb556847f22edec1ac Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 9 Jul 2014 12:42:06 +0200 Subject: Adapt to API changes in MateRRScreen Based on gnome-settings-daemon commit: 3d4bb7d247ac1d70840cd7ea7247263d3f590d9f From: Giovanni Campagna - mate_rr_screen_new has lost the callback parameter, replaced by "screen-changed" signal - mate_rr_screen_destroy is gone --- plugins/xrandr/msd-xrandr-manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/xrandr') diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c index 6330d72..d93a045 100644 --- a/plugins/xrandr/msd-xrandr-manager.c +++ b/plugins/xrandr/msd-xrandr-manager.c @@ -2336,8 +2336,8 @@ msd_xrandr_manager_start (MsdXrandrManager *manager, log_open (); log_msg ("------------------------------------------------------------\nSTARTING XRANDR PLUGIN\n"); - manager->priv->rw_screen = mate_rr_screen_new ( - gdk_screen_get_default (), on_randr_event, manager, error); + manager->priv->rw_screen = mate_rr_screen_new (gdk_screen_get_default (), error); + g_signal_connect (manager->priv->rw_screen, "screen-changed", G_CALLBACK (on_randr_event), manager); if (manager->priv->rw_screen == NULL) { log_msg ("Could not initialize the RANDR plugin%s%s\n", @@ -2441,7 +2441,7 @@ msd_xrandr_manager_stop (MsdXrandrManager *manager) } if (manager->priv->rw_screen != NULL) { - mate_rr_screen_destroy (manager->priv->rw_screen); + g_object_unref (manager->priv->rw_screen); manager->priv->rw_screen = NULL; } -- cgit v1.2.1