[gnome-builder] git: adjust notification defaults
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] git: adjust notification defaults
- Date: Mon, 6 May 2019 04:53:09 +0000 (UTC)
commit d672910a55e35e35c9dae15706c77dca068c5981
Author: Christian Hergert <chergert redhat com>
Date: Sun May 5 19:54:34 2019 -0700
git: adjust notification defaults
src/plugins/git/gbp-git-progress.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/git/gbp-git-progress.c b/src/plugins/git/gbp-git-progress.c
index 4e960f3c6..c9703763d 100644
--- a/src/plugins/git/gbp-git-progress.c
+++ b/src/plugins/git/gbp-git-progress.c
@@ -46,7 +46,13 @@ gbp_git_progress_new (GDBusConnection *connection,
g_return_val_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable), NULL);
ret = g_object_new (GBP_TYPE_GIT_PROGRESS, NULL);
- ret->notif = notif ? g_object_ref (notif) : NULL;
+
+ if (notif != NULL)
+ {
+ ret->notif = g_object_ref (notif);
+ ide_notification_set_has_progress (notif, TRUE);
+ ide_notification_set_icon_name (notif, "builder-vcs-git-symbolic");
+ }
guid = g_dbus_generate_guid ();
path = g_strdup_printf ("/org/gnome/Builder/Git/Progress/%s", guid);
@@ -58,7 +64,6 @@ gbp_git_progress_new (GDBusConnection *connection,
{
if (notif != NULL)
{
- ide_notification_set_icon_name (notif, "builder-vcs-git-symbolic");
g_object_bind_property (ret, "fraction", notif, "progress", 0);
g_object_bind_property (ret, "message", notif, "body", 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]