Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xfce4-panel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Simon Steinbeiß
xfce4-panel
Commits
faff3f89
Commit
faff3f89
authored
Jul 12, 2020
by
Sean Davis
🕶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix alignment and row count at all sizes
parent
1e61dee4
Pipeline
#1254
passed with stages
in 4 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
plugins/systray/sn-config.c
plugins/systray/sn-config.c
+2
-4
No files found.
plugins/systray/sn-config.c
View file @
faff3f89
...
...
@@ -608,7 +608,6 @@ sn_config_get_dimensions (SnConfig *config,
gboolean
single_row
,
square_icons
;
panel_size
=
sn_config_get_panel_size
(
config
);
panel_size
-=
2
;
// Add border padding
config_nrows
=
sn_config_get_nrows
(
config
);
icon_size
=
sn_config_get_icon_size
(
config
);
single_row
=
sn_config_get_single_row
(
config
);
...
...
@@ -621,7 +620,7 @@ sn_config_get_dimensions (SnConfig *config,
}
else
{
hx_size
=
MIN
(
icon_size
,
panel_size
);
hx_size
=
MIN
(
icon_size
+
2
,
panel_size
);
nrows
=
single_row
?
1
:
MAX
(
1
,
panel_size
/
hx_size
);
hy_size
=
panel_size
/
nrows
;
}
...
...
@@ -634,10 +633,9 @@ sn_config_get_dimensions (SnConfig *config,
row_size
=
hy_size
;
padding
=
(
hy_size
-
icon_size
)
/
2
;
padding
+=
1
;
if
(
square_icons
)
padding
=
1
;
padding
=
0
;
if
(
ret_icon_size
!=
NULL
)
*
ret_icon_size
=
icon_size
;
...
...
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