[gnome-panel] panel: Remove obsolete help buttons



commit c1b9cc3216a1d4e33a6a7d5a120f3847bd0cb64c
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Tue Feb 7 22:18:31 2012 -0500

    panel: Remove obsolete help buttons
    
    The GNOME user guide no longer includes help for gnome-panel, so
    remove the help buttons that's don't work any more.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=669630

 gnome-panel/panel-addto.c              |    7 -------
 gnome-panel/panel-menu-bar.c           |   11 +----------
 gnome-panel/panel-properties-dialog.ui |   32 --------------------------------
 gnome-panel/panel-run-dialog.ui        |   16 ----------------
 4 files changed, 1 insertions(+), 65 deletions(-)
---
diff --git a/gnome-panel/panel-addto.c b/gnome-panel/panel-addto.c
index 86f415b..8d6b5cb 100644
--- a/gnome-panel/panel-addto.c
+++ b/gnome-panel/panel-addto.c
@@ -800,11 +800,6 @@ panel_addto_dialog_response (GtkWidget *widget_dialog,
 	GtkTreeIter       filter_iter;
 
 	switch (response_id) {
-	case GTK_RESPONSE_HELP:
-		panel_show_help (gtk_window_get_screen (GTK_WINDOW (dialog->addto_dialog)),
-				 "user-guide", "gospanel-15", NULL);
-		break;
-
 	case PANEL_ADDTO_RESPONSE_ADD:
 		selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (dialog->tree_view));
 		if (gtk_tree_selection_get_selected (selection, &filter_model,
@@ -1243,8 +1238,6 @@ panel_addto_dialog_new (PanelWidget *panel_widget)
 				  dialog);
 
 	dialog->addto_dialog = gtk_dialog_new ();
-	gtk_dialog_add_button (GTK_DIALOG (dialog->addto_dialog),
-			       GTK_STOCK_HELP, GTK_RESPONSE_HELP);
 	dialog->back_button = gtk_dialog_add_button (GTK_DIALOG (dialog->addto_dialog),
 						     GTK_STOCK_GO_BACK,
 						     PANEL_ADDTO_RESPONSE_BACK);
diff --git a/gnome-panel/panel-menu-bar.c b/gnome-panel/panel-menu-bar.c
index 0988144..acb1217 100644
--- a/gnome-panel/panel-menu-bar.c
+++ b/gnome-panel/panel-menu-bar.c
@@ -227,12 +227,6 @@ panel_menu_bar_load (PanelWidget *panel,
 					   panel_lockdown_get_not_panels_locked_down_s);
 	}
 
-	panel_applet_add_callback (menubar->priv->info,
-				   "help",
-				   GTK_STOCK_HELP,
-				   _("_Help"),
-				   NULL);
-
 	panel_menu_bar_object_object_load_finish (PANEL_MENU_BAR_OBJECT (menubar),
 						  panel);
 }
@@ -258,10 +252,7 @@ panel_menu_bar_invoke_menu (PanelMenuBar *menubar,
 
 	screen = gtk_widget_get_screen (GTK_WIDGET (menubar));
 
-	if (!strcmp (callback_name, "help")) {
-		panel_show_help (screen, "user-guide", "menubar", NULL);
-
-	} else if (!strcmp (callback_name, "edit")) {
+	if (!strcmp (callback_name, "edit")) {
 		GError *error = NULL;
 
 		panel_launch_desktop_file_with_fallback ("alacarte.desktop",
diff --git a/gnome-panel/panel-properties-dialog.ui b/gnome-panel/panel-properties-dialog.ui
index dcb795a..8c4ffd6 100644
--- a/gnome-panel/panel-properties-dialog.ui
+++ b/gnome-panel/panel-properties-dialog.ui
@@ -529,21 +529,6 @@
           <object class="GtkHButtonBox" id="dialog-action_area1">
             <property name="visible">True</property>
             <child>
-              <object class="GtkButton" id="helpbutton1">
-                <property name="label">gtk-help</property>
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="can_default">True</property>
-                <property name="receives_default">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>
-              </packing>
-            </child>
-            <child>
               <object class="GtkButton" id="closebutton1">
                 <property name="label">gtk-close</property>
                 <property name="visible">True</property>
@@ -569,7 +554,6 @@
       </object>
     </child>
     <action-widgets>
-      <action-widget response="-11">helpbutton1</action-widget>
       <action-widget response="-7">closebutton1</action-widget>
     </action-widgets>
   </object>
@@ -674,21 +658,6 @@
           <object class="GtkHButtonBox" id="dialog-action_area2">
             <property name="visible">True</property>
             <child>
-              <object class="GtkButton" id="helpbutton2">
-                <property name="label">gtk-help</property>
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="can_default">True</property>
-                <property name="receives_default">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>
-              </packing>
-            </child>
-            <child>
               <object class="GtkButton" id="closebutton2">
                 <property name="label">gtk-close</property>
                 <property name="visible">True</property>
@@ -713,7 +682,6 @@
       </object>
     </child>
     <action-widgets>
-      <action-widget response="-11">helpbutton2</action-widget>
       <action-widget response="-7">closebutton2</action-widget>
     </action-widgets>
   </object>
diff --git a/gnome-panel/panel-run-dialog.ui b/gnome-panel/panel-run-dialog.ui
index 16afda1..e084f65 100644
--- a/gnome-panel/panel-run-dialog.ui
+++ b/gnome-panel/panel-run-dialog.ui
@@ -197,21 +197,6 @@
           <object class="GtkHButtonBox" id="dialog-action_area1">
             <property name="visible">True</property>
             <child>
-              <object class="GtkButton" id="help_button">
-                <property name="label">gtk-help</property>
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="can_default">True</property>
-                <property name="receives_default">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>
-              </packing>
-            </child>
-            <child>
               <object class="GtkButton" id="cancel_button">
                 <property name="label">gtk-cancel</property>
                 <property name="visible">True</property>
@@ -258,7 +243,6 @@
       </object>
     </child>
     <action-widgets>
-      <action-widget response="-11">help_button</action-widget>
       <action-widget response="-6">cancel_button</action-widget>
       <action-widget response="-5">run_button</action-widget>
     </action-widgets>



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