summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChristian Hammond <chipx86@chipx86.com>2006-01-20 10:19:44 +0000
committerChristian Hammond <chipx86@chipx86.com>2006-01-20 10:19:44 +0000
commitab651643eb3c37dd317b995554ce0a2cfea7eb37 (patch)
treefe6cc7939b97e296a3117053746caa23c1ae31eb /tools
parent8297e321bfb5c5c8c0764e145e33f8b2e5fa71fd (diff)
downloadlibnotify-ab651643eb3c37dd317b995554ce0a2cfea7eb37.tar.gz
Remove notify_notification_show_and_forget(). It's less confusing to have one show function, and require that the user unref. It also simplifies the code quite a bit.
Diffstat (limited to 'tools')
-rw-r--r--tools/notify-send.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/notify-send.c b/tools/notify-send.c
index 327a068..ebbfa46 100644
--- a/tools/notify-send.c
+++ b/tools/notify-send.c
@@ -133,7 +133,8 @@ main(int argc, const char **argv)
notify_notification_set_urgency(notify, urgency);
notify_notification_set_timeout(notify, expire_timeout);
- notify_notification_show_and_forget(notify, NULL);
+ notify_notification_show(notify, NULL);
+ g_object_unref(G_OBJECT(notify));
poptFreeContext(opt_ctx);
notify_uninit();