Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
17deb981
Commit
17deb981
authored
May 13, 2022
by
Erik Reider
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of github.com:ErikReider/SwayNotificationCenter
parents
e9603dce
07f6aac0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
notiDaemon.vala
src/notiDaemon/notiDaemon.vala
+2
-2
notiModel.vala
src/notiModel/notiModel.vala
+8
-0
No files found.
src/notiDaemon/notiDaemon.vala
View file @
17deb981
...
...
@@ -186,8 +186,8 @@ namespace SwayNotificationCenter {
noti_window
.
add_notification
(
param
,
this
);
}
}
// Only add notification to CC if it isn't IGNORED
if
(
state
!=
NotificationStatusEnum
.
IGNORED
)
{
// Only add notification to CC if it isn't IGNORED
and not transient
if
(
state
!=
NotificationStatusEnum
.
IGNORED
&&
!
param
.
transient
)
{
control_center
.
add_notification
(
param
,
this
);
}
...
...
src/notiModel/notiModel.vala
View file @
17deb981
...
...
@@ -83,6 +83,7 @@ namespace SwayNotificationCenter {
public
string
desktop_entry
{
get
;
set
;
}
public
string
category
{
get
;
set
;
}
public
bool
resident
{
get
;
set
;
}
public
bool
transient
{
get
;
set
;
}
public
UrgencyLevels
urgency
{
get
;
set
;
}
/** Replaces the old notification with the same value of:
* - x-canonical-private-synchronous
...
...
@@ -226,6 +227,13 @@ namespace SwayNotificationCenter {
resident
=
hint_value
.
get_boolean
();
}
break
;
case
"transient"
:
if
(
hint_value
.
is_of_type
(
GLib
.
VariantType
.
BOOLEAN
))
{
transient
=
hint_value
.
get_boolean
();
}
else
if
(
hint_value
.
is_of_type
(
GLib
.
VariantType
.
INT32
))
{
transient
=
hint_value
.
get_int32
()
==
1
;
}
break
;
case
"urgency"
:
if
(
hint_value
.
is_of_type
(
GLib
.
VariantType
.
BYTE
))
{
urgency
=
UrgencyLevels
.
from_value
(
hint_value
.
get_byte
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment