[notification-daemon] notification-box: don't use str after g_free
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [notification-daemon] notification-box: don't use str after g_free
- Date: Mon, 12 Oct 2015 17:23:03 +0000 (UTC)
commit e51a22f7a43a3cc365202915699d07f10fecbe6b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Oct 12 19:15:08 2015 +0300
notification-box: don't use str after g_free
src/nd-notification-box.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/nd-notification-box.c b/src/nd-notification-box.c
index 29a7626..72fd2bc 100644
--- a/src/nd-notification-box.c
+++ b/src/nd-notification-box.c
@@ -177,6 +177,7 @@ update_notification_box (NdNotificationBox *notification_box)
{
gboolean have_icon;
gboolean have_body;
+ const char *body;
gboolean have_actions;
GdkPixbuf *pixbuf;
char **actions;
@@ -220,9 +221,10 @@ update_notification_box (NdNotificationBox *notification_box)
-1);
/* body */
- gtk_label_set_markup (GTK_LABEL (notification_box->priv->body_label), nd_notification_get_body
(notification_box->priv->notification));
+ body = nd_notification_get_body (notification_box->priv->notification);
+ gtk_label_set_markup (GTK_LABEL (notification_box->priv->body_label), body);
- if (str != NULL && *str != '\0') {
+ if (body != NULL && *body != '\0') {
gtk_widget_set_size_request (notification_box->priv->body_label,
summary_width,
-1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]