[Xfce4-commits] [xfce/xfce4-panel] 01/01: Add missing icon-size property to PanelItembar
noreply at xfce.org
noreply at xfce.org
Thu Nov 29 00:21:28 CET 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit f7e02cf41cbb46e1def2b81054ebc34b2a04709e
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Thu Nov 29 00:21:01 2018 +0100
Add missing icon-size property to PanelItembar
---
libxfce4panel/xfce-panel-plugin.c | 2 +-
panel/panel-itembar.c | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c
index b831e66..03a7202 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -589,7 +589,7 @@ xfce_panel_plugin_class_init (XfcePanelPluginClass *klass)
g_param_spec_int ("icon-size",
"Icon Size",
"Size of the plugin's icon",
- 0, (128 * 6), 0,
+ 0, (256 * 6), 0,
G_PARAM_READABLE
| G_PARAM_STATIC_STRINGS);
diff --git a/panel/panel-itembar.c b/panel/panel-itembar.c
index b3e13bf..49a932f 100644
--- a/panel/panel-itembar.c
+++ b/panel/panel-itembar.c
@@ -98,6 +98,7 @@ struct _PanelItembar
/* some properties we clone from the panel window */
XfcePanelPluginMode mode;
gint size;
+ gint icon_size;
gint nrows;
/* dnd support */
@@ -127,6 +128,7 @@ enum
PROP_0,
PROP_MODE,
PROP_SIZE,
+ PROP_ICON_SIZE,
PROP_NROWS
};
@@ -204,6 +206,13 @@ panel_itembar_class_init (PanelItembarClass *klass)
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
+ PROP_ICON_SIZE,
+ g_param_spec_uint ("icon-size",
+ NULL, NULL,
+ 0, 256, 0,
+ G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (gobject_class,
PROP_NROWS,
g_param_spec_uint ("nrows",
NULL, NULL,
@@ -240,6 +249,7 @@ panel_itembar_init (PanelItembar *itembar)
itembar->children = NULL;
itembar->mode = XFCE_PANEL_PLUGIN_MODE_HORIZONTAL;
itembar->size = 30;
+ itembar->icon_size = 0;
itembar->nrows = 1;
itembar->highlight_index = -1;
itembar->highlight_length = -1;
@@ -269,6 +279,10 @@ panel_itembar_set_property (GObject *object,
itembar->size = g_value_get_uint (value);
break;
+ case PROP_ICON_SIZE:
+ itembar->icon_size = g_value_get_uint (value);
+ break;
+
case PROP_NROWS:
itembar->nrows = g_value_get_uint (value);
break;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list