Don't flush the D-BUS connection, and make sure we disconnect from it.
This commit is contained in:
parent
f4bce0d062
commit
8012961132
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue