Skip to content
Snippets Groups Projects
Commit 2c8c8a39 authored by Harald Judt's avatar Harald Judt Committed by Sean Davis
Browse files

Fix size calculation caused by 7c2e79ae (bug #13998)


The commit missed adjusting `size', as done previously, which is used as
an argument to pulseaudio_button_set_size.

Signed-off-by: default avatarSean Davis <smd.seandavis@gmail.com>
parent 553691a9
No related branches found
No related tags found
No related merge requests found
...@@ -254,11 +254,13 @@ pulseaudio_plugin_size_changed (XfcePanelPlugin *plugin, ...@@ -254,11 +254,13 @@ pulseaudio_plugin_size_changed (XfcePanelPlugin *plugin,
gint icon_size; gint icon_size;
/* The plugin only occupies a single row */ /* The plugin only occupies a single row */
size /= xfce_panel_plugin_get_nrows(plugin);
#if LIBXFCE4PANEL_CHECK_VERSION (4, 13, 0) #if LIBXFCE4PANEL_CHECK_VERSION (4, 13, 0)
icon_size = xfce_panel_plugin_get_icon_size (plugin); icon_size = xfce_panel_plugin_get_icon_size (plugin);
#else #else
// fall-back for older panel versions // fall-back for older panel versions
icon_size = size / xfce_panel_plugin_get_nrows(plugin); icon_size = size;
icon_size -= 4; icon_size -= 4;
if (icon_size < 24) if (icon_size < 24)
icon_size = 16; icon_size = 16;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment