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
4aed2c4f
Unverified
Commit
4aed2c4f
authored
Jul 31, 2025
by
Erik Reider
Committed by
GitHub
Jul 31, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the notification actions stretch to fill the whole space like before (#613)
parent
5adc54cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
notification.vala
src/notification/notification.vala
+4
-0
No files found.
src/notification/notification.vala
View file @
4aed2c4f
...
@@ -575,6 +575,7 @@ namespace SwayNotificationCenter {
...
@@ -575,6 +575,7 @@ namespace SwayNotificationCenter {
child
=
alt_actions_box
.
get_first_child
())
{
child
=
alt_actions_box
.
get_first_child
())
{
alt_actions_box
.
remove
(
child
);
alt_actions_box
.
remove
(
child
);
}
}
alt_actions_box
.
set_max_children_per_line
(
1
);
// Check for security codes
// Check for security codes
string
?
code
=
parse_body_codes
();
string
?
code
=
parse_body_codes
();
...
@@ -601,8 +602,10 @@ namespace SwayNotificationCenter {
...
@@ -601,8 +602,10 @@ namespace SwayNotificationCenter {
flowbox_child
.
set_child
(
action_button
);
flowbox_child
.
set_child
(
action_button
);
}
}
int
max_children_per_line
=
0
;
// Add notification specified actions
// Add notification specified actions
foreach
(
var
action
in
param
.
actions
.
data
)
{
foreach
(
var
action
in
param
.
actions
.
data
)
{
max_children_per_line
++;
Gtk
.
FlowBoxChild
flowbox_child
=
new
Gtk
.
FlowBoxChild
();
Gtk
.
FlowBoxChild
flowbox_child
=
new
Gtk
.
FlowBoxChild
();
flowbox_child
.
add_css_class
(
"notification-action"
);
flowbox_child
.
add_css_class
(
"notification-action"
);
alt_actions_box
.
append
(
flowbox_child
);
alt_actions_box
.
append
(
flowbox_child
);
...
@@ -612,6 +615,7 @@ namespace SwayNotificationCenter {
...
@@ -612,6 +615,7 @@ namespace SwayNotificationCenter {
action_button
.
set_can_focus
(
false
);
action_button
.
set_can_focus
(
false
);
flowbox_child
.
set_child
(
action_button
);
flowbox_child
.
set_child
(
action_button
);
}
}
alt_actions_box
.
set_max_children_per_line
(
max_children_per_line
.
clamp
(
1
,
7
));
}
}
}
}
...
...
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