[gnome-color-manager] trivial: Add a button for more information when the device profile has no vcgt



commit 4f6c540f8b1d4e30f3d74c457a74a5a5ca4a2c4e
Author: Richard Hughes <richard hughsie com>
Date:   Fri Feb 19 16:09:44 2010 +0000

    trivial: Add a button for more information when the device profile has no vcgt

 help/C/gnome-color-manager.xml |   19 +++++++++++++++++++
 src/gcm-prefs.c                |   17 +++++++++++++++++
 2 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/help/C/gnome-color-manager.xml b/help/C/gnome-color-manager.xml
index 3649789..c420838 100644
--- a/help/C/gnome-color-manager.xml
+++ b/help/C/gnome-color-manager.xml
@@ -296,6 +296,25 @@
   </section>
 </section>
 
+<section id="faq">
+  <title>Frequently asked questions</title>
+  <para>This section list questions frequently asked about color management</para>
+
+  <section id="faq-missing-vcgt">
+    <title>Missing information for whole-screen calibration</title>
+    <para>
+      Unfortunately, many vendor-supplied ICC profiles do not include the
+      information required for whole-screen color correction.
+      These profiles can still be useful for applications that can do color
+      compensation, but you will not see all the colors of your screen change.
+    </para>
+    <para>
+      In order to create a full profile, you will need to use a special
+      calibration device called a colorimeter.
+    </para>
+  </section>
+</section>
+
 <section id="about">
   <title>About</title>
   <para>
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 9d8a147..6cb5954 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -2492,6 +2492,18 @@ gcm_prefs_client_notify_loading_cb (GcmClient *client, GParamSpec *pspec, gpoint
 }
 
 /**
+ * gcm_prefs_info_bar_response_cb:
+ **/
+static void
+gcm_prefs_info_bar_response_cb (GtkDialog *dialog, GtkResponseType response, gpointer user_data)
+{
+	if (response == GTK_RESPONSE_HELP) {
+		/* open the help file in the right place */
+		gcm_gnome_help ("faq-missing-vcgt");
+	}
+}
+
+/**
  * main:
  **/
 int
@@ -2776,6 +2788,11 @@ main (int argc, char **argv)
 	/* use infobar */
 	info_bar_loading = gtk_info_bar_new ();
 	info_bar_vcgt = gtk_info_bar_new ();
+	g_signal_connect (info_bar_vcgt, "response",
+			  G_CALLBACK (gcm_prefs_info_bar_response_cb), NULL);
+
+	/* TRANSLATORS: button for more details about the vcgt failure */
+	gtk_info_bar_add_button (GTK_INFO_BAR(info_bar_vcgt), _("More information"), GTK_RESPONSE_HELP);
 
 	/* TRANSLATORS: this is displayed while the devices are being probed */
 	info_bar_loading_label = gtk_label_new (_("Loading list of devices..."));



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