[gnome-color-manager] Remove the display tab in the color panel



commit a301b2ed3c46a80860e1fe6e476f9f7f5a26aa69
Author: Richard Hughes <richard hughsie com>
Date:   Tue Nov 30 19:30:59 2010 +0000

    Remove the display tab in the color panel
    
    The user should not be able to turn specific bits of the color management
    support off, as this invalidates the profile.

 data/gcm-prefs.ui    |  109 --------------------------------------------------
 src/cc-color-panel.c |   18 --------
 2 files changed, 0 insertions(+), 127 deletions(-)
---
diff --git a/data/gcm-prefs.ui b/data/gcm-prefs.ui
index d97ad03..fd700cf 100644
--- a/data/gcm-prefs.ui
+++ b/data/gcm-prefs.ui
@@ -896,115 +896,6 @@
               </packing>
             </child>
             <child>
-              <object class="GtkVBox" id="vbox4">
-                <property name="visible">True</property>
-                <property name="border_width">15</property>
-                <property name="spacing">12</property>
-                <child>
-                  <object class="GtkHBox" id="hbox2">
-                    <property name="visible">True</property>
-                    <property name="spacing">9</property>
-                    <child>
-                      <object class="GtkLabel" id="label1">
-                        <property name="visible">True</property>
-                        <property name="label" translatable="yes">These settings are applied for all displays attached to this computer, even ones that are added later.</property>
-                        <property name="wrap">True</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">False</property>
-                        <property name="position">0</property>
-                      </packing>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">False</property>
-                    <property name="position">0</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkAlignment" id="alignment7">
-                    <property name="visible">True</property>
-                    <property name="left_padding">12</property>
-                    <child>
-                      <object class="GtkVBox" id="vbox7">
-                        <property name="visible">True</property>
-                        <property name="spacing">3</property>
-                        <child>
-                          <object class="GtkCheckButton" id="checkbutton_display">
-                            <property name="label" translatable="yes">_Apply basic display correction</property>
-                            <property name="visible">True</property>
-                            <property name="can_focus">True</property>
-                            <property name="receives_default">False</property>
-                            <property name="tooltip_text" translatable="yes">Program the video card with the adjusted color values so all windows are color corrected</property>
-                            <property name="use_underline">True</property>
-                            <property name="draw_indicator">True</property>
-                          </object>
-                          <packing>
-                            <property name="expand">True</property>
-                            <property name="fill">True</property>
-                            <property name="position">0</property>
-                          </packing>
-                        </child>
-                        <child>
-                          <object class="GtkCheckButton" id="checkbutton_fullscreen">
-                            <property name="label" translatable="yes">Do full screen correction</property>
-                            <property name="visible">True</property>
-                            <property name="sensitive">False</property>
-                            <property name="can_focus">True</property>
-                            <property name="receives_default">False</property>
-                            <property name="tooltip_text" translatable="yes">This enables full screen color management which requires a modern 3D graphics card with hardware shader support. This option may increase CPU load and will increase the amount of power this computer uses.</property>
-                            <property name="use_underline">True</property>
-                            <property name="draw_indicator">True</property>
-                          </object>
-                          <packing>
-                            <property name="expand">True</property>
-                            <property name="fill">True</property>
-                            <property name="position">1</property>
-                          </packing>
-                        </child>
-                        <child>
-                          <object class="GtkCheckButton" id="checkbutton_profile">
-                            <property name="label" translatable="yes">Set profile for _color managed applications</property>
-                            <property name="visible">True</property>
-                            <property name="can_focus">True</property>
-                            <property name="receives_default">False</property>
-                            <property name="tooltip_text" translatable="yes">Set a property on the system so applications use the default display profile</property>
-                            <property name="use_underline">True</property>
-                            <property name="draw_indicator">True</property>
-                          </object>
-                          <packing>
-                            <property name="expand">True</property>
-                            <property name="fill">True</property>
-                            <property name="position">2</property>
-                          </packing>
-                        </child>
-                      </object>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">True</property>
-                    <property name="position">1</property>
-                  </packing>
-                </child>
-              </object>
-              <packing>
-                <property name="position">2</property>
-              </packing>
-            </child>
-            <child type="tab">
-              <object class="GtkLabel" id="label_defaults">
-                <property name="visible">True</property>
-                <property name="label" translatable="yes" comments="Tab title, display specific controls">Display</property>
-              </object>
-              <packing>
-                <property name="position">1</property>
-                <property name="tab_fill">False</property>
-              </packing>
-            </child>
-            <child>
               <object class="GtkVBox" id="vbox_working_spaces">
                 <property name="visible">True</property>
                 <property name="border_width">15</property>
diff --git a/src/cc-color-panel.c b/src/cc-color-panel.c
index 05827ba..22fcf2d 100644
--- a/src/cc-color-panel.c
+++ b/src/cc-color-panel.c
@@ -2836,24 +2836,6 @@ cc_color_panel_init (CcColorPanel *panel)
 	g_signal_connect (widget, "value-changed",
 			  G_CALLBACK (cc_color_panel_slider_changed_cb), panel);
 
-	/* connect up global widget */
-	widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder, "checkbutton_display"));
-	g_settings_bind (panel->priv->settings,
-			 GCM_SETTINGS_GLOBAL_DISPLAY_CORRECTION,
-			 widget, "active",
-			 G_SETTINGS_BIND_DEFAULT);
-	g_signal_connect (widget, "clicked",
-			  G_CALLBACK (cc_color_panel_checkbutton_changed_cb), panel);
-
-	/* connect up atom widget */
-	widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder, "checkbutton_profile"));
-	g_settings_bind (panel->priv->settings,
-			 GCM_SETTINGS_SET_ICC_PROFILE_ATOM,
-			 widget, "active",
-			 G_SETTINGS_BIND_DEFAULT);
-	g_signal_connect (widget, "clicked",
-			  G_CALLBACK (cc_color_panel_checkbutton_changed_cb), panel);
-
 	/* do we show the fine tuning box */
 	widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder, "expander_fine_tuning"));
 	g_settings_bind (panel->priv->settings,



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