aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/new-mail-notify/ChangeLog1
-rw-r--r--plugins/new-mail-notify/new-mail-notify.c13
-rw-r--r--plugins/new-mail-notify/new-mail-notify.h2
3 files changed, 5 insertions, 11 deletions
diff --git a/plugins/new-mail-notify/ChangeLog b/plugins/new-mail-notify/ChangeLog
index 18fa3180cd..b90840025e 100644
--- a/plugins/new-mail-notify/ChangeLog
+++ b/plugins/new-mail-notify/ChangeLog
@@ -4,6 +4,7 @@
(org_gnome_new_mail_notify): renamed slightly for
namespace/consistency.
(org_gnome_new_mail_notify): fixed signature.
+ (org_gnome_new_mail_notify): fixed some warnings & formatting.
2004-12-30 Miguel Angel Lopez Hernandez <miguel@gulev.org.mx>
diff --git a/plugins/new-mail-notify/new-mail-notify.c b/plugins/new-mail-notify/new-mail-notify.c
index d9a9ec4e3a..d857e67ffc 100644
--- a/plugins/new-mail-notify/new-mail-notify.c
+++ b/plugins/new-mail-notify/new-mail-notify.c
@@ -44,7 +44,6 @@ toggled_cb (GtkWidget *widget, EConfig *config)
gconf_client_set_bool (target->gconf, GCONF_KEY, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)), NULL);
}
-
GtkWidget *
org_gnome_new_mail_config (EPlugin *ep, EConfigHookItemFactoryData *hook_data)
{
@@ -71,11 +70,8 @@ org_gnome_new_mail_config (EPlugin *ep, EConfigHookItemFactoryData *hook_data)
void
org_gnome_new_mail_notify (EPlugin *ep, EMEventTargetFolder *t)
{
- if (gconf_client_get_bool(gconf_client_get_default(),
- GCONF_KEY,
- NULL))
- {
- DBusGConnection *bus;
+ if (gconf_client_get_bool(gconf_client_get_default(), GCONF_KEY, NULL)) {
+ DBusConnection *bus;
DBusError error;
DBusMessage *message;
@@ -84,8 +80,7 @@ org_gnome_new_mail_notify (EPlugin *ep, EMEventTargetFolder *t)
bus = dbus_bus_get (DBUS_BUS_SESSION,
&error);
- if (!bus)
- {
+ if (!bus) {
printf ("Failed to connect to the D-BUS daemon: %s\n", error.message);
dbus_error_free (&error);
}
@@ -98,8 +93,6 @@ org_gnome_new_mail_notify (EPlugin *ep, EMEventTargetFolder *t)
DBUS_INTERFACE,
"Newmail");
- /* FIXME: For some weird reason in some place the folder uri is changed
- for the event id */
/* Append the folder uri as an argument */
dbus_message_append_args (message,
DBUS_TYPE_STRING, t->uri,
diff --git a/plugins/new-mail-notify/new-mail-notify.h b/plugins/new-mail-notify/new-mail-notify.h
index 419f59e967..7612f03d37 100644
--- a/plugins/new-mail-notify/new-mail-notify.h
+++ b/plugins/new-mail-notify/new-mail-notify.h
@@ -30,7 +30,7 @@ GtkWidget *
org_gnome_new_mail_config (EPlugin *ep, EConfigHookItemFactoryData *hook_data);
void
-org_gnome_new_mail_notify (EMEventTargetFolder *t);
+org_gnome_new_mail_notify (EPlugin *ep, EMEventTargetFolder *t);
#endif /* __NMN_H__ */