changeset 1657:61f1f017e847

fix statusicon plugin
author mf0102 <0102@gmx.at>
date Fri, 07 Sep 2007 14:43:56 +0200
parents 95fab0931d47
children 5538324eb069
files src/statusicon/si.c src/statusicon/si.h
diffstat 2 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/statusicon/si.c	Fri Sep 07 14:41:18 2007 +0200
+++ b/src/statusicon/si.c	Fri Sep 07 14:43:56 2007 +0200
@@ -28,7 +28,7 @@
 
 
 GeneralPlugin *statusicon_gplist[] = { &si_gp, NULL };
-DECLARE_PLUGIN(statusicon, NULL, NULL, NULL, NULL, NULL, statusicon_gplist, NULL, NULL);
+SIMPLE_GENERAL_PLUGIN(statusicon, statusicon_gplist);
 
 static gboolean plugin_active = FALSE;
 
--- a/src/statusicon/si.h	Fri Sep 07 14:41:18 2007 +0200
+++ b/src/statusicon/si.h	Fri Sep 07 14:43:56 2007 +0200
@@ -32,13 +32,11 @@
 
 GeneralPlugin si_gp =
 {
-    NULL,					/* handle */
-    NULL,					/* filename */
-    "Status Icon " SI_VERSION_PLUGIN,		/* description */
-    si_init,					/* init */
-    si_about,					/* about */
-    si_prefs,					/* configure */
-    si_cleanup					/* cleanup */
+    .description = "Status Icon " SI_VERSION_PLUGIN,
+    .init = si_init,
+    .about = si_about,
+    .configure = si_prefs,
+    .cleanup = si_cleanup
 };
 
 #endif /* !_I_SI_H */