diff options
author | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2009-01-14 07:55:26 +0000 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2009-01-14 07:55:26 +0000 |
commit | f097a87eef1209b4a4135397967992eb3097b5cd (patch) | |
tree | 0a13c77369fdde74f856f59f7f28a0ab90f3d912 /battstat | |
parent | a704b40d643ff1e6623d46ec695d3457d9681916 (diff) |
Drop gnome_help from battstat applet
svn path=/trunk/; revision=11187
Diffstat (limited to 'battstat')
-rw-r--r-- | battstat/battstat-hal.c | 1 | ||||
-rw-r--r-- | battstat/battstat_applet.c | 17 | ||||
-rw-r--r-- | battstat/properties.c | 4 |
3 files changed, 12 insertions, 10 deletions
diff --git a/battstat/battstat-hal.c b/battstat/battstat-hal.c index 67ceaf753..328b62450 100644 --- a/battstat/battstat-hal.c +++ b/battstat/battstat-hal.c @@ -19,7 +19,6 @@ */ #include <config.h> -#include <libgnome/gnome-i18n.h> #ifdef HAVE_HAL diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c index fb6d7cdc3..232dca762 100644 --- a/battstat/battstat_applet.c +++ b/battstat/battstat_applet.c @@ -39,8 +39,6 @@ #include <libgnome/libgnome.h> -#include <libgnomeui/libgnomeui.h> - #include <panel-applet.h> #include <panel-applet-gconf.h> @@ -1176,10 +1174,19 @@ void battstat_show_help( ProgressData *battstat, const char *section ) { GError *error = NULL; + char *uri; + + if (section) + uri = g_strdup_printf ("ghelp:battstat?%s", section); + else + uri = g_strdup ("ghelp:battstat"); + + gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (battstat->applet)), + uri, + gtk_get_current_event_time (), + &error); - gnome_help_display_on_screen( "battstat", section, - gtk_widget_get_screen( battstat->applet ), - &error ); + g_free (uri); if( error ) { diff --git a/battstat/properties.c b/battstat/properties.c index 42304e63d..f205202bd 100644 --- a/battstat/properties.c +++ b/battstat/properties.c @@ -44,10 +44,6 @@ #include <gconf/gconf-client.h> -#include <libgnome/libgnome.h> - -#include <libgnomeui/libgnomeui.h> - #include <panel-applet.h> #include <panel-applet-gconf.h> |