[gnome-system-monitor/wip/mallard-help: 35/62] Remove help button from prefs dialog



commit 8e82111f2805fb4c84db73751a6ef39376fe76a2
Author: Ekaterina Gerasimova <kittykat3756 gmail com>
Date:   Tue Feb 4 22:08:48 2014 +0000

    Remove help button from prefs dialog
    
    There's no prefs help landing page in the new Mallard help at the moment.

 data/preferences.ui |   15 ---------------
 src/prefsdialog.cpp |   16 ++--------------
 2 files changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/data/preferences.ui b/data/preferences.ui
index 1c7a5b1..ce599da 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -19,20 +19,6 @@
           <object class="GtkButtonBox" id="dialog_action_area">
             <property name="can_focus">False</property>
             <child>
-              <object class="GtkButton" id="help_button">
-                <property name="label" translatable="yes">_Help</property>
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="receives_default">True</property>
-                <property name="use_underline">True</property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="fill">True</property>
-                <property name="position">0</property>
-              </packing>
-            </child>
-            <child>
               <object class="GtkButton" id="close_button">
                 <property name="label" translatable="yes">_Close</property>
                 <property name="visible">True</property>
@@ -735,7 +721,6 @@
       </object>
     </child>
     <action-widgets>
-      <action-widget response="-11">help_button</action-widget>
       <action-widget response="-7">close_button</action-widget>
     </action-widgets>
   </object>
diff --git a/src/prefsdialog.cpp b/src/prefsdialog.cpp
index 401ad8a..7cb4b33 100644
--- a/src/prefsdialog.cpp
+++ b/src/prefsdialog.cpp
@@ -18,20 +18,8 @@ static GtkWidget *prefs_dialog = NULL;
 static void
 prefs_dialog_button_pressed (GtkDialog *dialog, gint id, gpointer data)
 {
-    if (id == GTK_RESPONSE_HELP)
-    {
-        GError* error = 0;
-        if (!g_app_info_launch_default_for_uri("help:gnome-system-monitor/gnome-system-monitor-prefs", NULL, 
&error))
-        {
-            g_warning("Could not display preferences help : %s", error->message);
-            g_error_free(error);
-        }
-    }
-    else
-    {
-        gtk_widget_destroy (GTK_WIDGET (dialog));
-        prefs_dialog = NULL;
-    }
+    gtk_widget_destroy (GTK_WIDGET (dialog));
+    prefs_dialog = NULL;
 }
 
 


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