gnome-applets r11187 - trunk/battstat



Author: diegoe
Date: Wed Jan 14 07:55:26 2009
New Revision: 11187
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=11187&view=rev

Log:
Drop gnome_help from battstat applet

Modified:
   trunk/battstat/battstat-hal.c
   trunk/battstat/battstat_applet.c
   trunk/battstat/properties.c

Modified: trunk/battstat/battstat-hal.c
==============================================================================
--- trunk/battstat/battstat-hal.c	(original)
+++ trunk/battstat/battstat-hal.c	Wed Jan 14 07:55:26 2009
@@ -19,7 +19,6 @@
  */
 
 #include <config.h>
-#include <libgnome/gnome-i18n.h>
 
 #ifdef HAVE_HAL
 

Modified: trunk/battstat/battstat_applet.c
==============================================================================
--- trunk/battstat/battstat_applet.c	(original)
+++ trunk/battstat/battstat_applet.c	Wed Jan 14 07:55:26 2009
@@ -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 @@
 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 )
   {

Modified: trunk/battstat/properties.c
==============================================================================
--- trunk/battstat/properties.c	(original)
+++ trunk/battstat/properties.c	Wed Jan 14 07:55:26 2009
@@ -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>
 



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