[gnome-color-manager] trivial: remove the help button from gcm-picker, it doesn't do anything



commit a5839c4faedb93ce7f95359fc209a962f1be363f
Author: Richard Hughes <richard hughsie com>
Date:   Thu Aug 25 13:31:02 2011 +0100

    trivial: remove the help button from gcm-picker, it doesn't do anything

 data/gcm-picker.ui |   19 +------------------
 src/gcm-picker.c   |   12 ------------
 2 files changed, 1 insertions(+), 30 deletions(-)
---
diff --git a/data/gcm-picker.ui b/data/gcm-picker.ui
index 4746575..1adbc69 100644
--- a/data/gcm-picker.ui
+++ b/data/gcm-picker.ui
@@ -19,22 +19,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="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_close">
                 <property name="label">gtk-close</property>
                 <property name="visible">True</property>
@@ -46,7 +30,7 @@
               <packing>
                 <property name="expand">False</property>
                 <property name="fill">False</property>
-                <property name="position">1</property>
+                <property name="position">0</property>
               </packing>
             </child>
           </object>
@@ -510,7 +494,6 @@
       </object>
     </child>
     <action-widgets>
-      <action-widget response="0">button_help</action-widget>
       <action-widget response="0">button_close</action-widget>
     </action-widgets>
   </object>
diff --git a/src/gcm-picker.c b/src/gcm-picker.c
index bbb8faa..100a7f7 100644
--- a/src/gcm-picker.c
+++ b/src/gcm-picker.c
@@ -325,15 +325,6 @@ gcm_picker_close_cb (GtkWidget *widget, gpointer data)
 }
 
 /**
- * gcm_picker_help_cb:
- **/
-static void
-gcm_picker_help_cb (GtkWidget *widget, gpointer data)
-{
-	gcm_gnome_help ("picker");
-}
-
-/**
  * gcm_picker_delete_event_cb:
  **/
 static gboolean
@@ -697,9 +688,6 @@ gcm_picker_startup_cb (GApplication *application, gpointer user_data)
 	g_signal_connect (widget, "clicked",
 			  G_CALLBACK (gcm_picker_close_cb), application);
 
-	widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_help"));
-	g_signal_connect (widget, "clicked",
-			  G_CALLBACK (gcm_picker_help_cb), NULL);
 
 	widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_measure"));
 	g_signal_connect (widget, "clicked",



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