[gnome-settings-daemon] color: Remove the cached parsed EDID block when the output is removed



commit a3dec29cac9d996faf224a1ea351eeeba84970fe
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jun 13 11:39:54 2011 +0100

    color: Remove the cached parsed EDID block when the output is removed

 plugins/color/gsd-color-manager.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 62df187..61baf6c 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1240,11 +1240,13 @@ gcm_session_screen_removed_find_device_cb (GObject *object, GAsyncResult *res, g
 
 static void
 gnome_rr_screen_output_removed_cb (GnomeRRScreen *screen,
-                                  GnomeRROutput *output,
-                                  GsdColorManager *manager)
+                                   GnomeRROutput *output,
+                                   GsdColorManager *manager)
 {
         g_debug ("output %s removed",
                  gnome_rr_output_get_name (output));
+        g_hash_table_remove (manager->priv->edid_cache,
+                             gnome_rr_output_get_name (output));
         cd_client_find_device_by_property (manager->priv->client,
                                            CD_DEVICE_METADATA_XRANDR_NAME,
                                            gnome_rr_output_get_name (output),



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