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
cd0aacf0
Verified
Commit
cd0aacf0
authored
Mar 21, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typos: waylans → wayland, SINLGE → SINGLE
parent
2581e697
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
blankWindow.vala
src/blankWindow/blankWindow.vala
+1
-1
notifications.vala
src/controlCenter/widgets/notifications/notifications.vala
+2
-2
notificationGroup.vala
src/notificationGroup/notificationGroup.vala
+5
-5
notificationWindow.vala
src/notificationWindow/notificationWindow.vala
+1
-1
No files found.
src/blankWindow/blankWindow.vala
View file @
cd0aacf0
...
...
@@ -62,7 +62,7 @@ namespace XimperShellNotificationCenter {
if
(!
GtkLayerShell
.
is_supported
())
{
stderr
.
printf
(
"GTKLAYERSHELL IS NOT SUPPORTED!\n"
);
stderr
.
printf
(
"Ximper Shell Notification Center only works on Wayland!\n"
);
stderr
.
printf
(
"If running waylan
s
session, try running:\n"
);
stderr
.
printf
(
"If running waylan
d
session, try running:\n"
);
stderr
.
printf
(
"\tGDK_BACKEND=wayland ximper-shell-notification-center\n"
);
Process
.
exit
(
1
);
}
...
...
src/controlCenter/widgets/notifications/notifications.vala
View file @
cd0aacf0
...
...
@@ -298,7 +298,7 @@ namespace XimperShellNotificationCenter.Widgets {
case
"Return"
:
if
(
group
!=
null
)
{
var
noti
=
group
.
get_latest_notification
();
if
(
group
.
state
==
NotificationGroupState
.
SIN
LG
E
&&
noti
!=
null
)
{
if
(
group
.
state
==
NotificationGroupState
.
SIN
GL
E
&&
noti
!=
null
)
{
noti
.
click_default_action
();
break
;
}
...
...
@@ -309,7 +309,7 @@ namespace XimperShellNotificationCenter.Widgets {
case
"BackSpace"
:
if
(
group
!=
null
&&
n_groups
>
0
)
{
unowned
Notification
?
noti
=
group
.
get_latest_notification
();
if
(
group
.
state
==
NotificationGroupState
.
SIN
LG
E
&&
noti
!=
null
)
{
if
(
group
.
state
==
NotificationGroupState
.
SIN
GL
E
&&
noti
!=
null
)
{
noti
.
request_dismiss_notification
(
ClosedReasons
.
DISMISSED
,
false
);
break
;
}
...
...
src/notificationGroup/notificationGroup.vala
View file @
cd0aacf0
namespace
XimperShellNotificationCenter
{
public
enum
NotificationGroupState
{
EMPTY
=
0
,
SIN
LG
E
=
1
,
SIN
GL
E
=
1
,
MANY
=
2
;
}
...
...
@@ -256,7 +256,7 @@ namespace XimperShellNotificationCenter {
private
void
update_state
()
{
state
=
group
.
n_children
>
NotificationGroupState
.
SIN
LG
E
?
NotificationGroupState
.
MANY
:
NotificationGroupState
.
SIN
GL
E
?
NotificationGroupState
.
MANY
:
(
NotificationGroupState
)
group
.
n_children
;
group
.
set_sensitive
(!
dismissed
&&
...
...
@@ -355,7 +355,7 @@ namespace XimperShellNotificationCenter {
// otherwise, animate the whole group (collapsed single-notification)
if
(
state
==
NotificationGroupState
.
MANY
)
{
yield
notification
.
remove_notification
(!
dismissed_by_swipe
);
}
else
if
(
state
==
NotificationGroupState
.
SIN
LG
E
)
{
}
else
if
(
state
==
NotificationGroupState
.
SIN
GL
E
)
{
dismissed
=
true
;
if
(!
yield
play_remove_animation
(!
notification
.
dismissed_by_swipe
))
{
debug
(
"Trying to play group removal animation twice. Ignoring"
);
...
...
@@ -368,7 +368,7 @@ namespace XimperShellNotificationCenter {
group
.
remove
(
notification
);
update_state
();
if
(
state
==
NotificationGroupState
.
SIN
LG
E
)
{
if
(
state
==
NotificationGroupState
.
SIN
GL
E
)
{
set_expanded
(
false
);
on_expand_change
(
false
);
}
...
...
@@ -383,7 +383,7 @@ namespace XimperShellNotificationCenter {
// Skip animation if the notification was dismissed by swipe
bool
dismissed_by_swipe
=
this
.
dismissed_by_swipe
;
if
(
state
==
NotificationGroupState
.
SIN
LG
E
)
{
if
(
state
==
NotificationGroupState
.
SIN
GL
E
)
{
unowned
Notification
?
noti
=
(
Notification
?)
group
.
get_first_widget
();
if
(
noti
!=
null
)
{
dismissed_by_swipe
|=
noti
.
dismissed_by_swipe
;
...
...
src/notificationWindow/notificationWindow.vala
View file @
cd0aacf0
...
...
@@ -20,7 +20,7 @@ namespace XimperShellNotificationCenter {
if
(!
GtkLayerShell
.
is_supported
())
{
stderr
.
printf
(
"GTKLAYERSHELL IS NOT SUPPORTED!\n"
);
stderr
.
printf
(
"Ximper Shell Notification Center only works on Wayland!\n"
);
stderr
.
printf
(
"If running waylan
s
session, try running:\n"
);
stderr
.
printf
(
"If running waylan
d
session, try running:\n"
);
stderr
.
printf
(
"\tGDK_BACKEND=wayland ximper-shell-notification-center\n"
);
Process
.
exit
(
1
);
}
...
...
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