Add icon-size property per panel

Desktop / Xfce / xfce4-panel - Simon Steinbeiss [elfenbeinturm.at] - 28 November 2018 14:03 EST

Plugins using the xfce_panel_plugin_get_icon_size method returns either the fixed icon-size that users can now define per panel or a calculated icon-size. This way combinations of sizes that were previously impossible are do-able, e.g. a 32px panel with 16px icons. This should help with consistency of icons.

Setting 'icon-size' to 0 results in "auto sizing" (i.e. icon-size calculated based on the size of the panel).

4d1b1798 Add icon-size property per panel
libxfce4panel/libxfce4panel.symbols | 1 +
libxfce4panel/xfce-panel-plugin-provider.c | 11 +++
libxfce4panel/xfce-panel-plugin-provider.h | 6 ++
libxfce4panel/xfce-panel-plugin.c | 82 +++++++++++++++++----
panel/panel-application.c | 3 +-
panel/panel-plugin-external.c | 23 ++++++
panel/panel-preferences-dialog.c | 88 ++++++++++++++++++++++-
panel/panel-preferences-dialog.glade | 110 ++++++++++++++++++++++++++++-
panel/panel-window.c | 49 ++++++++++++-
wrapper/main.c | 4 ++
10 files changed, 360 insertions(+), 17 deletions(-)

Upstream: git.xfce.org


  • Share