aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-08-24 11:12:29 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-08-24 11:12:29 +0800
commit0858bd319cbc5450e270ae91af05f3205e11a8c0 (patch)
treee2340701609a00db8877cd141fa874c919bf7d73 /plugins
parent83aa6125d7a6e40a6b28b7b15285e7ef675a0bca (diff)
downloadgsoc2013-evolution-0858bd319cbc5450e270ae91af05f3205e11a8c0.tar
gsoc2013-evolution-0858bd319cbc5450e270ae91af05f3205e11a8c0.tar.gz
gsoc2013-evolution-0858bd319cbc5450e270ae91af05f3205e11a8c0.tar.bz2
gsoc2013-evolution-0858bd319cbc5450e270ae91af05f3205e11a8c0.tar.lz
gsoc2013-evolution-0858bd319cbc5450e270ae91af05f3205e11a8c0.tar.xz
gsoc2013-evolution-0858bd319cbc5450e270ae91af05f3205e11a8c0.tar.zst
gsoc2013-evolution-0858bd319cbc5450e270ae91af05f3205e11a8c0.zip
forward-define e_plugin_lib_enable, remove some unecessary headers.
2005-08-23 Not Zed <NotZed@Ximian.com> * new-mail-notify.c: forward-define e_plugin_lib_enable, remove some unecessary headers. (send_dbus_message): remove spurious check for bus==NULL. svn path=/trunk/; revision=30223
Diffstat (limited to 'plugins')
-rw-r--r--plugins/new-mail-notify/ChangeLog6
-rw-r--r--plugins/new-mail-notify/new-mail-notify.c11
2 files changed, 9 insertions, 8 deletions
diff --git a/plugins/new-mail-notify/ChangeLog b/plugins/new-mail-notify/ChangeLog
index 043f38e422..98b6014166 100644
--- a/plugins/new-mail-notify/ChangeLog
+++ b/plugins/new-mail-notify/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-23 Not Zed <NotZed@Ximian.com>
+
+ * new-mail-notify.c: forward-define e_plugin_lib_enable, remove
+ some unecessary headers.
+ (send_dbus_message): remove spurious check for bus==NULL.
+
2005-07-11 Vivek Jain <jvivek@novell.com>
* new-mail-notify.c :(send_dbus_message)
diff --git a/plugins/new-mail-notify/new-mail-notify.c b/plugins/new-mail-notify/new-mail-notify.c
index dba602acf0..34b4fd95e0 100644
--- a/plugins/new-mail-notify/new-mail-notify.c
+++ b/plugins/new-mail-notify/new-mail-notify.c
@@ -25,11 +25,8 @@
#include <string.h>
#include <glib.h>
-#include <gtk/gtk.h>
-#include <libgnome/gnome-i18n.h>
#include <gconf/gconf-client.h>
#include <e-util/e-config.h>
-#include <mail/em-config.h>
#include <mail/em-event.h>
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
@@ -38,7 +35,6 @@
#define DBUS_PATH "/org/gnome/evolution/mail/newmail"
#define DBUS_INTERFACE "org.gnome.evolution.mail.dbus.Signal"
-GtkWidget *org_gnome_new_mail_config (EPlugin *ep, EConfigHookItemFactoryData *hook_data);
void org_gnome_new_mail_notify (EPlugin *ep, EMEventTargetFolder *t);
void org_gnome_message_reading_notify (EPlugin *ep, EMEventTargetMessage *t);
@@ -49,9 +45,6 @@ send_dbus_message (const char *message_name, const char *data)
{
DBusMessage *message;
- if (bus == NULL)
- return;
-
/* Create a new message on the DBUS_INTERFACE */
message = dbus_message_new_signal (DBUS_PATH,
DBUS_INTERFACE,
@@ -90,6 +83,8 @@ org_gnome_new_mail_notify (EPlugin *ep, EMEventTargetFolder *t)
send_dbus_message ("Newmail", t->uri);
}
+int e_plugin_lib_enable (EPluginLib *ep, int enable);
+
int
e_plugin_lib_enable (EPluginLib *ep, int enable)
{
@@ -104,7 +99,7 @@ e_plugin_lib_enable (EPluginLib *ep, int enable)
/* Could not determine address of the D-BUS session bus */
/* Plugin will be disabled */
dbus_error_free (&error);
- return 1;
+ return -1;
}
/* Set up this connection to work in a GLib event loop */