gnome-applets r11189 - trunk/cpufreq/src
- From: diegoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-applets r11189 - trunk/cpufreq/src
- Date: Wed, 14 Jan 2009 07:55:52 +0000 (UTC)
Author: diegoe
Date: Wed Jan 14 07:55:51 2009
New Revision: 11189
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=11189&view=rev
Log:
Drop gnome_help from cpufreq applet
Modified:
trunk/cpufreq/src/cpufreq-applet.c
trunk/cpufreq/src/cpufreq-prefs.c
Modified: trunk/cpufreq/src/cpufreq-applet.c
==============================================================================
--- trunk/cpufreq/src/cpufreq-applet.c (original)
+++ trunk/cpufreq/src/cpufreq-applet.c Wed Jan 14 07:55:51 2009
@@ -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 @@
{
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"),
Modified: trunk/cpufreq/src/cpufreq-prefs.c
==============================================================================
--- trunk/cpufreq/src/cpufreq-prefs.c (original)
+++ trunk/cpufreq/src/cpufreq-prefs.c Wed Jan 14 07:55:51 2009
@@ -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 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]