[balsa] Show note before unreffing it, not after!
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [balsa] Show note before unreffing it, not after!
- Date: Tue, 19 Jan 2010 22:35:32 +0000 (UTC)
commit b5abb79d8b940d76971107bbd584fc2d76ccd226
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Tue Jan 19 17:34:29 2010 -0500
Show note before unreffing it, not after!
* libbalsa/information.c (libbalsa_information_varg): show note
before unreffing it(!).
ChangeLog | 5 +++++
libbalsa/information.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e2f8d5e..3edd8a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-01-19 Peter Bloomfield
+ * libbalsa/information.c (libbalsa_information_varg): show note
+ before unreffing it(!).
+
+2010-01-19 Peter Bloomfield
+
* src/main-window.c (bw_quit_nicely): use
libbalsa_information_parented, so that notification bubble can
be closed when Balsa quits;
diff --git a/libbalsa/information.c b/libbalsa/information.c
index 7c17069..e752200 100644
--- a/libbalsa/information.c
+++ b/libbalsa/information.c
@@ -126,6 +126,7 @@ libbalsa_information_varg(GtkWindow *parent, LibBalsaInformationType type,
g_string_free(escaped, TRUE);
notify_notification_set_timeout(note, 7000); /* 7 seconds */
+ notify_notification_show(note, NULL);
if (parent) {
/* Close with parent if earlier. */
g_object_weak_ref(G_OBJECT(parent),
@@ -135,7 +136,6 @@ libbalsa_information_varg(GtkWindow *parent, LibBalsaInformationType type,
parent);
} else
g_object_unref(note);
- notify_notification_show(note, NULL);
return;
}
/* Fall through to the ordinary notification scheme */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]