Don't flush the D-BUS connection, and make sure we disconnect from it.

This commit is contained in:
Christian Hammond 2004-09-30 05:34:33 +00:00
parent f4bce0d062
commit 8012961132
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Wed Sep 29 22:34:03 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
* libnotify/notify.c:
* tools/notify-send.c:
- Don't flush the D-BUS connection, and make sure we disconnect from it.
Wed Sep 29 21:53:15 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
* libnotify/notify.c:

View File

@ -312,8 +312,10 @@ _notify_disconnect(void)
_filters_added = FALSE;
}
dbus_connection_flush(_dbus_conn);
dbus_connection_disconnect(_dbus_conn);
dbus_connection_unref(_dbus_conn);
_dbus_conn = NULL;
}
gboolean

View File

@ -122,7 +122,8 @@ main(int argc, const char **argv)
}
}
if (!notify_init("notify-send")) exit(1);
if (!notify_init("notify-send"))
exit(1);
notify_send_notification(NULL, type, urgency, summary, body, icon,
TRUE, expire_timeout, NULL, 0);