summaryrefslogtreecommitdiff
path: root/cpufreq
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@src.gnome.org>2009-01-14 07:55:51 +0000
committerDiego Escalante Urrelo <diegoe@src.gnome.org>2009-01-14 07:55:51 +0000
commit9e4fc492c98cf5158a363f83023a0b3cf38730cb (patch)
treef91c147806eb4c8ab77b6cce2d978254833b8dd9 /cpufreq
parent4e15bf7a5c97b78d2202c55009e14aeb9f84f327 (diff)
Drop gnome_help from cpufreq applet
svn path=/trunk/; revision=11189
Diffstat (limited to 'cpufreq')
-rw-r--r--cpufreq/src/cpufreq-applet.c8
-rw-r--r--cpufreq/src/cpufreq-prefs.c9
2 files changed, 9 insertions, 8 deletions
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index 6169e787f..7d9495aad 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -25,7 +25,6 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
-#include <libgnomeui/gnome-help.h>
#include <panel-applet.h>
#include <panel-applet-gconf.h>
#include <glib/gi18n.h>
@@ -570,9 +569,10 @@ cpufreq_applet_help_cb (BonoboUIComponent *uic,
{
GError *error = NULL;
- gnome_help_display_on_screen ("cpufreq-applet", NULL,
- gtk_widget_get_screen (GTK_WIDGET (applet)),
- &error);
+ gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (applet)),
+ "ghelp:cpufreq-applet",
+ gtk_get_current_event_time (),
+ &error);
if (error) {
cpufreq_utils_display_error (_("Could not open help document"),
diff --git a/cpufreq/src/cpufreq-prefs.c b/cpufreq/src/cpufreq-prefs.c
index 4c2c11c08..059466556 100644
--- a/cpufreq/src/cpufreq-prefs.c
+++ b/cpufreq/src/cpufreq-prefs.c
@@ -25,7 +25,6 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
-#include <libgnomeui/gnome-help.h>
#include <gconf/gconf-client.h>
#include "cpufreq-prefs.h"
@@ -470,9 +469,11 @@ cpufreq_prefs_dialog_response_cb (CPUFreqPrefs *prefs,
GError *error = NULL;
if (response == GTK_RESPONSE_HELP) {
- gnome_help_display_on_screen ("cpufreq-applet", "cpufreq-applet-prefs",
- gtk_widget_get_screen (prefs->priv->dialog),
- &error);
+ gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (prefs->priv->dialog)),
+ "ghelp:cpufreq-applet?cpufreq-applet-prefs",
+ gtk_get_current_event_time (),
+ &error);
+
if (error) {
cpufreq_utils_display_error (_("Could not open help document"),
error->message);