[gnome-builder/gnome-builder-3-32] notification: use set_icon_name
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-32] notification: use set_icon_name
- Date: Fri, 10 May 2019 18:57:07 +0000 (UTC)
commit cc3ceabac02ea3e049f8c4b86c0dd9017d4c50ea
Author: Christian Hergert <chergert redhat com>
Date: Fri May 10 10:13:18 2019 -0700
notification: use set_icon_name
src/plugins/notification/ide-notification-addin.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/plugins/notification/ide-notification-addin.c
b/src/plugins/notification/ide-notification-addin.c
index 2b801c942..fad903245 100644
--- a/src/plugins/notification/ide-notification-addin.c
+++ b/src/plugins/notification/ide-notification-addin.c
@@ -180,7 +180,7 @@ ide_notification_addin_build_finished (IdeNotificationAddin *self,
if (self->notif)
{
- g_autoptr(GIcon) icon = g_themed_icon_new ("emblem-ok-symbolic");
+ ide_notification_set_icon_name (self->notif, "emblem-ok-symbolic");
if (self->requested_phase & IDE_PIPELINE_PHASE_BUILD)
ide_notification_set_title (self->notif, _("Build succeeded"));
@@ -188,8 +188,6 @@ ide_notification_addin_build_finished (IdeNotificationAddin *self,
ide_notification_set_title (self->notif, _("Build configured"));
else if (self->requested_phase & IDE_PIPELINE_PHASE_AUTOGEN)
ide_notification_set_title (self->notif, _("Build bootstrapped"));
-
- ide_notification_set_icon (self->notif, icon);
}
ide_notification_addin_notify (self, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]