aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/new-mail-notify
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2005-01-11 11:03:07 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-01-11 11:03:07 +0800
commitd521e9581b5ba2e88ba921c8e1b79d73cc35d4ef (patch)
treefdfaf37253c1cb683f276fccc307d3fe30715051 /plugins/new-mail-notify
parent958da58b2d2cc0771e6500817745357391a5305e (diff)
downloadgsoc2013-evolution-d521e9581b5ba2e88ba921c8e1b79d73cc35d4ef.tar.gz
gsoc2013-evolution-d521e9581b5ba2e88ba921c8e1b79d73cc35d4ef.tar.zst
gsoc2013-evolution-d521e9581b5ba2e88ba921c8e1b79d73cc35d4ef.zip
(org_gnome_new_mail_notify): fixed some warnings & formatting
svn path=/trunk/; revision=28345
Diffstat (limited to 'plugins/new-mail-notify')
-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__ */