From afea143f845bd898764a87a8825b8c3d62a2e9b4 Mon Sep 17 00:00:00 2001 From: Paul Mangan Date: Wed, 30 Apr 2003 13:28:13 +0000 Subject: [PATCH] get rid of eye-hurting function signatures :) --- ChangeLog.claws | 13 +++++++++++++ configure.ac | 4 ++-- src/plugins/clamav/clamav_plugin.c | 6 +++--- src/plugins/clamav/clamav_plugin_gtk.c | 6 +++--- src/plugins/demo/demo.c | 6 +++--- src/plugins/dillo_viewer/dillo_viewer.c | 6 +++--- src/plugins/image_viewer/plugin.c | 6 +++--- src/plugins/mathml_viewer/mathml_viewer.c | 6 +++--- src/plugins/spamassassin/spamassassin.c | 6 +++--- src/plugins/spamassassin/spamassassin_gtk.c | 6 +++--- src/plugins/trayicon/trayicon.c | 8 ++++---- 11 files changed, 43 insertions(+), 30 deletions(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 8a943b3ca..31863a391 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,16 @@ +2003-04-30 [paul] 0.8.11claws127 + + * src/plugins/clamav/clamav_plugin.c + src/plugins/clamav/clamav_plugin_gtk.c + src/plugins/demo/demo.c + src/plugins/dillo_viewer/dillo_viewer.c + src/plugins/image_viewer/plugin.c + src/plugins/mathml_viewer/mathml_viewer.c + src/plugins/spamassassin/spamassassin.c + src/plugins/spamassassin/spamassassin_gtk.c + src/plugins/trayicon/trayicon.c + get rid of eye-hurting function signatures + 2003-04-30 [paul] 0.8.11claws126 * src/plugins/trayicon/trayicon.c diff --git a/configure.ac b/configure.ac index b23cf39ff..343e817dc 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=8 MICRO_VERSION=11 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws126 +EXTRA_VERSION=claws127 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target @@ -412,7 +412,7 @@ if test x"$ac_cv_enable_image_viewer_plugin" = xyes; then fi AM_CONDITIONAL(BUILD_IMAGE_VIEWER_PLUGIN, test x"$ac_cv_enable_image_viewer_plugin" = xyes) if test x"$ac_cv_enable_image_viewer_plugin" = xyes; then - PLUGINS="image-viewer $PLUGINS" + PLUGINS="image $PLUGINS" fi AC_ARG_ENABLE(dillo-viewer-plugin, diff --git a/src/plugins/clamav/clamav_plugin.c b/src/plugins/clamav/clamav_plugin.c index 8da381d1a..eac85ce42 100644 --- a/src/plugins/clamav/clamav_plugin.c +++ b/src/plugins/clamav/clamav_plugin.c @@ -242,12 +242,12 @@ void plugin_done() debug_print("ClamAV plugin unloaded\n"); } -const gchar *plugin_name() +const gchar *plugin_name(void) { return "Clam AntiVirus"; } -const gchar *plugin_desc() +const gchar *plugin_desc(void) { return "This plugin uses Clam AntiVirus to scan all message attachments " "that are received from a POP account.\n" @@ -261,7 +261,7 @@ const gchar *plugin_desc() "manually write the plugin configuration.\n"; } -const gchar *plugin_type() +const gchar *plugin_type(void) { return "Common"; } diff --git a/src/plugins/clamav/clamav_plugin_gtk.c b/src/plugins/clamav/clamav_plugin_gtk.c index 52f35a129..1e4af42e0 100644 --- a/src/plugins/clamav/clamav_plugin_gtk.c +++ b/src/plugins/clamav/clamav_plugin_gtk.c @@ -248,12 +248,12 @@ void plugin_done() debug_print("ClamAV GTK plugin unloaded\n"); } -const gchar *plugin_name() +const gchar *plugin_name(void) { return "Clam AntiVirus GTK"; } -const gchar *plugin_desc() +const gchar *plugin_desc(void) { return "This plugin provides a Preferences page for the Clam AntiVirus " "plugin.\n" @@ -268,7 +268,7 @@ const gchar *plugin_desc() "and select the folder where infected mail will be saved.\n"; } -const gchar *plugin_type() +const gchar *plugin_type(void) { return "GTK"; } diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c index b59917e4c..72df275a4 100644 --- a/src/plugins/demo/demo.c +++ b/src/plugins/demo/demo.c @@ -53,12 +53,12 @@ void plugin_done() printf("Demo plugin unloaded\n"); } -const gchar *plugin_name() +const gchar *plugin_name(void) { return "Demo"; } -const gchar *plugin_desc() +const gchar *plugin_desc(void) { return "This Plugin is only a demo of how to write plugins for Sylpheed. " "It installs a hook for new log output and writes it to stdout." @@ -66,7 +66,7 @@ const gchar *plugin_desc() "It is not really usefull"; } -const gchar *plugin_type() +const gchar *plugin_type(void) { return "Common"; } diff --git a/src/plugins/dillo_viewer/dillo_viewer.c b/src/plugins/dillo_viewer/dillo_viewer.c index bd272973f..09b5610e8 100644 --- a/src/plugins/dillo_viewer/dillo_viewer.c +++ b/src/plugins/dillo_viewer/dillo_viewer.c @@ -156,18 +156,18 @@ void plugin_done() mimeview_unregister_viewer_factory(&dillo_viewer_factory); } -const gchar *plugin_name() +const gchar *plugin_name(void) { return "Dillo HTML Viewer"; } -const gchar *plugin_desc() +const gchar *plugin_desc(void) { return "This plugin renders HTML mail using the Dillo " "web browser."; } -const gchar *plugin_type() +const gchar *plugin_type(void) { return "GTK"; } diff --git a/src/plugins/image_viewer/plugin.c b/src/plugins/image_viewer/plugin.c index 61754d532..728c74ae9 100644 --- a/src/plugins/image_viewer/plugin.c +++ b/src/plugins/image_viewer/plugin.c @@ -35,18 +35,18 @@ void plugin_done() image_viewer_prefs_done(); } -const gchar *plugin_name() +const gchar *plugin_name(void) { return "Image Viewer"; } -const gchar *plugin_desc() +const gchar *plugin_desc(void) { return "This plugin uses either gdk-pixbuf or imlib to display " "attached images."; } -const gchar *plugin_type() +const gchar *plugin_type(void) { return "GTK"; } diff --git a/src/plugins/mathml_viewer/mathml_viewer.c b/src/plugins/mathml_viewer/mathml_viewer.c index 2565c141b..57f880540 100644 --- a/src/plugins/mathml_viewer/mathml_viewer.c +++ b/src/plugins/mathml_viewer/mathml_viewer.c @@ -138,18 +138,18 @@ void plugin_done() mimeview_unregister_viewer_factory(&mathml_viewer_factory); } -const gchar *plugin_name() +const gchar *plugin_name(void) { return "MathML Viewer"; } -const gchar *plugin_desc() +const gchar *plugin_desc(void) { return "This plugin uses the GtkMathView widget to render " "MathML attachments (Content-Type: text/mathml)"; } -const gchar *plugin_type() +const gchar *plugin_type(void) { return "GTK"; } diff --git a/src/plugins/spamassassin/spamassassin.c b/src/plugins/spamassassin/spamassassin.c index 99bb273bd..4c82d89bb 100644 --- a/src/plugins/spamassassin/spamassassin.c +++ b/src/plugins/spamassassin/spamassassin.c @@ -214,12 +214,12 @@ void plugin_done() debug_print("Spamassassin plugin unloaded\n"); } -const gchar *plugin_name() +const gchar *plugin_name(void) { return "SpamAssassin"; } -const gchar *plugin_desc() +const gchar *plugin_desc(void) { return "This plugin checks all messages that are received from a POP " "account for spam using a SpamAssassin server. You will need " @@ -234,7 +234,7 @@ const gchar *plugin_desc() "manually write the plugin configuration.\n"; } -const gchar *plugin_type() +const gchar *plugin_type(void) { return "Common"; } diff --git a/src/plugins/spamassassin/spamassassin_gtk.c b/src/plugins/spamassassin/spamassassin_gtk.c index 8e3062b73..07a84e0e1 100644 --- a/src/plugins/spamassassin/spamassassin_gtk.c +++ b/src/plugins/spamassassin/spamassassin_gtk.c @@ -285,12 +285,12 @@ void plugin_done() debug_print("SpamAssassin GTK plugin unloaded\n"); } -const gchar *plugin_name() +const gchar *plugin_name(void) { return "SpamAssassin GTK"; } -const gchar *plugin_desc() +const gchar *plugin_desc(void) { return "This plugin provides a Preferences page for the SpamAssassin " "plugin.\n" @@ -306,7 +306,7 @@ const gchar *plugin_desc() "saved.\n"; } -const gchar *plugin_type() +const gchar *plugin_type(void) { return "GTK"; } diff --git a/src/plugins/trayicon/trayicon.c b/src/plugins/trayicon/trayicon.c index 74d706f71..2f69c70c8 100644 --- a/src/plugins/trayicon/trayicon.c +++ b/src/plugins/trayicon/trayicon.c @@ -135,7 +135,7 @@ int plugin_init(gchar **error) } trayicon = egg_tray_icon_new("Sylpheed-Claws"); -// trayicon = gtk_window_new(GTK_WINDOW_TOPLEVEL); +/* trayicon = gtk_window_new(GTK_WINDOW_TOPLEVEL); */ gtk_window_set_default_size(GTK_WINDOW(trayicon), 16, 16); gtk_container_set_border_width(GTK_CONTAINER(trayicon), 0); @@ -174,12 +174,12 @@ void plugin_done() hooks_unregister_hook(FOLDER_ITEM_UPDATE_HOOKLIST, hook_id); } -const gchar *plugin_name() +const gchar *plugin_name(void) { return "Trayicon"; } -const gchar *plugin_desc() +const gchar *plugin_desc(void) { return "This plugin places a mailbox icon in the system tray that " "indicates if you have new or unread mail.\n" @@ -189,7 +189,7 @@ const gchar *plugin_desc() "number of messages."; } -const gchar *plugin_type() +const gchar *plugin_type(void) { return "GTK"; } -- 2.25.1