Commit 4cb1515e authored by Rodrigo Moya's avatar Rodrigo Moya
Browse files

color: Use the GnomeRRScreen singleton

parent bd8c2449
......@@ -1433,7 +1433,7 @@ gsd_color_manager_start (GsdColorManager *manager,
gnome_settings_profile_start (NULL);
/* coldplug the list of screens */
priv->x11_screen = gnome_rr_screen_new (gdk_screen_get_default (), error);
priv->x11_screen = gnome_settings_session_get_screen (error);
if (priv->x11_screen == NULL)
goto out;
......
......@@ -3397,7 +3397,7 @@ gsd_power_manager_start (GsdPowerManager *manager,
G_CALLBACK (idle_idletime_alarm_expired_cb), manager);
/* coldplug the list of screens */
manager->priv->x11_screen = gnome_rr_screen_new (gdk_screen_get_default (), error);
manager->priv->x11_screen = gnome_settings_session_get_screen (error);
if (manager->priv->x11_screen == NULL)
return FALSE;
......
......@@ -48,6 +48,7 @@
#include "gsd-enums.h"
#include "gsd-input-helper.h"
#include "gnome-settings-profile.h"
#include "gnome-settings-session.h"
#include "gsd-xrandr-manager.h"
#define GSD_XRANDR_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GSD_TYPE_XRANDR_MANAGER, GsdXrandrManagerPrivate))
......@@ -1860,7 +1861,7 @@ gsd_xrandr_manager_start (GsdXrandrManager *manager,
log_open ();
log_msg ("------------------------------------------------------------\nSTARTING XRANDR PLUGIN\n");
manager->priv->rw_screen = gnome_rr_screen_new (gdk_screen_get_default (), error);
manager->priv->rw_screen = gnome_settings_session_get_screen (error);
if (manager->priv->rw_screen == NULL) {
log_msg ("Could not initialize the RANDR plugin%s%s\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment