[gnome-builder] notification: use set_icon_name



commit d4ba0b603b9908091a9e1718136f622791791c09
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 f2dd3114b..cc1285b83 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]