[gnome-color-manager] Remove the help button from the color control center panel



commit a9a2d9a461690acd020c40fd6cd9c6cdb7f3cee2
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 9 18:41:15 2011 +0000

    Remove the help button from the color control center panel

 data/gcm-prefs.ui    |   24 +++---------------------
 src/cc-color-panel.c |   13 -------------
 2 files changed, 3 insertions(+), 34 deletions(-)
---
diff --git a/data/gcm-prefs.ui b/data/gcm-prefs.ui
index 92b4098..1cbb4a5 100644
--- a/data/gcm-prefs.ui
+++ b/data/gcm-prefs.ui
@@ -169,23 +169,6 @@
             <property name="can_focus">False</property>
             <property name="layout_style">end</property>
             <child>
-              <object class="GtkButton" id="button_help">
-                <property name="label">gtk-help</property>
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="receives_default">True</property>
-                <property name="tooltip_text" translatable="yes">Open the documentation</property>
-                <property name="use_action_appearance">False</property>
-                <property name="use_stock">True</property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="fill">False</property>
-                <property name="position">0</property>
-                <property name="secondary">True</property>
-              </packing>
-            </child>
-            <child>
               <object class="GtkButton" id="button_default">
                 <property name="label" translatable="yes" comments="This is when the settings are set for all users, unless they have per-user settings themselves">_Set for all users</property>
                 <property name="visible">True</property>
@@ -198,7 +181,7 @@
               <packing>
                 <property name="expand">False</property>
                 <property name="fill">False</property>
-                <property name="position">2</property>
+                <property name="position">0</property>
               </packing>
             </child>
           </object>
@@ -305,7 +288,7 @@
                         </child>
                         <child>
                           <object class="GtkButton" id="button_calibrate">
-                            <property name="label" translatable="yes" comments="This is a button to calibrate the device by creating an ICC profile file using a hardware device or a reference image">Create _Profile</property>
+                            <property name="label" translatable="yes" comments="This is a button to calibrate the device by creating an ICC profile file using a hardware device or a reference image">Calibrate</property>
                             <property name="visible">True</property>
                             <property name="can_focus">True</property>
                             <property name="receives_default">True</property>
@@ -398,7 +381,7 @@
                         </child>
                         <child>
                           <object class="GtkButton" id="button_assign_make_default">
-                            <property name="label" translatable="yes">Set as default</property>
+                            <property name="label" translatable="yes">Set default</property>
                             <property name="visible">True</property>
                             <property name="can_focus">True</property>
                             <property name="receives_default">True</property>
@@ -810,7 +793,6 @@
       </object>
     </child>
     <action-widgets>
-      <action-widget response="0">button_help</action-widget>
       <action-widget response="0">button_default</action-widget>
     </action-widgets>
   </object>
diff --git a/src/cc-color-panel.c b/src/cc-color-panel.c
index 8f53d44..8ed8e00 100644
--- a/src/cc-color-panel.c
+++ b/src/cc-color-panel.c
@@ -207,15 +207,6 @@ out:
 }
 
 /**
- * cc_color_panel_help_cb:
- **/
-static void
-cc_color_panel_help_cb (GtkWidget *widget, CcColorPanel *panel)
-{
-	gcm_gnome_help ("preferences");
-}
-
-/**
  * cc_color_panel_calibrate_display:
  **/
 static gboolean
@@ -2482,10 +2473,6 @@ cc_color_panel_init (CcColorPanel *panel)
 	g_signal_connect (widget, "clicked",
 			  G_CALLBACK (cc_color_panel_default_cb), panel);
 	widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
-						     "button_help"));
-	g_signal_connect (widget, "clicked",
-			  G_CALLBACK (cc_color_panel_help_cb), panel);
-	widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
 						     "label_viewer"));
 	g_signal_connect (widget, "activate-link",
 			  G_CALLBACK (cc_color_panel_activate_link_cb), panel);



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