[gnome-control-center] color: Update the UI if the ICC profile title changes



commit f3df80e5a0104c4097265cb3b9964be2eb49313e
Author: Richard Hughes <richard hughsie com>
Date:   Thu May 22 09:05:44 2014 +0100

    color: Update the UI if the ICC profile title changes

 panels/color/cc-color-profile.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-profile.c b/panels/color/cc-color-profile.c
index 617bcb2..973037c 100644
--- a/panels/color/cc-color-profile.c
+++ b/panels/color/cc-color-profile.c
@@ -39,6 +39,7 @@ struct _CcColorProfilePrivate
   GtkWidget   *widget_info;
   GSettings   *settings;
   guint        device_changed_id;
+  guint        profile_changed_id;
 };
 
 #define GCM_SETTINGS_RECALIBRATE_PRINTER_THRESHOLD      "recalibrate-printer-threshold"
@@ -340,6 +341,8 @@ cc_color_profile_finalize (GObject *object)
 
   if (priv->device_changed_id > 0)
     g_signal_handler_disconnect (priv->device, priv->device_changed_id);
+  if (priv->profile_changed_id > 0)
+    g_signal_handler_disconnect (priv->profile, priv->profile_changed_id);
 
   g_free (priv->sortable);
   g_object_unref (priv->device);
@@ -396,6 +399,9 @@ cc_color_profile_constructed (GObject *object)
   priv->device_changed_id =
     g_signal_connect (priv->device, "changed",
                       G_CALLBACK (cc_color_profile_changed_cb), color_profile);
+  priv->profile_changed_id =
+    g_signal_connect (priv->profile, "changed",
+                      G_CALLBACK (cc_color_profile_changed_cb), color_profile);
 
   /* sort the profiles in the list by:
    * 1. thier device (required)


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