[gnome-settings-daemon] xrandr: remove the functionality to call gcm-apply when outputs change



commit 66231ddcd4d3acc226045236c1eecdfdfadb7c34
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jun 3 18:30:35 2011 +0100

    xrandr: remove the functionality to call gcm-apply when outputs change
    
    We've got our own color plugin now, and gcm-apply isn't relevant.

 plugins/xrandr/gsd-xrandr-manager.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 55e1be3..5c09183 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -1604,23 +1604,6 @@ auto_configure_outputs (GsdXrandrManager *manager, guint32 timestamp)
 }
 
 static void
-apply_color_profiles (void)
-{
-        gboolean ret;
-        GError *error = NULL;
-
-        /* run the gnome-color-manager apply program */
-        ret = g_spawn_command_line_async (BINDIR "/gcm-apply", &error);
-        if (!ret) {
-                /* only print the warning if the binary is installed */
-                if (error->code != G_SPAWN_ERROR_NOENT) {
-                        g_warning ("failed to apply color profiles: %s", error->message);
-                }
-                g_error_free (error);
-        }
-}
-
-static void
 on_randr_event (GnomeRRScreen *screen, gpointer data)
 {
         GsdXrandrManager *manager = GSD_XRANDR_MANAGER (data);
@@ -1710,9 +1693,6 @@ on_randr_event (GnomeRRScreen *screen, gpointer data)
                         log_msg ("Applied stored configuration to deal with event\n");
         }
 
-        /* poke gnome-color-manager */
-        apply_color_profiles ();
-
         log_close ();
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]