This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to annotated tag 0.2.1
in repository apps/xfdashboard.

commit f3e5ecd4d7b96efc8c619ce004cfa1b84c45120b
Author: Stephan Haller <[email protected]>
Date:   Fri Jun 27 13:53:58 2014 +0200

    Allow some ClutterActor properties to be stylable
    
    Allow the properties '{x,y}-expand' and '{x,y}-align' to be themable. This 
addresses issue #28 to avoid that a cell in XfdashboardDynamicTableLayout is 
always filled completely by child (and its background). To avoid this set 
'x-expand' and/or 'y-expand' to 'false' - maybe also set '{x,y}-align' 
accordingly to position child in available allocation space (e.g. set to 
'center').
---
 src/actor.c |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/actor.c b/src/actor.c
index bfea159..cfed92b 100644
--- a/src/actor.c
+++ b/src/actor.c
@@ -802,6 +802,10 @@ void xfdashboard_actor_class_init(XfdashboardActorClass 
*klass)
        /* Set up private structure */
        g_type_class_add_private(klass, sizeof(XfdashboardActorPrivate));
 
+       /* Create param-spec pool for themable properties */
+       g_assert(_xfdashboard_actor_stylable_properties_pool==NULL);
+       
_xfdashboard_actor_stylable_properties_pool=g_param_spec_pool_new(FALSE);
+
        /* Define properties */
        XfdashboardActorProperties[PROP_CAN_FOCUS]=
                g_param_spec_boolean("can-focus",
@@ -814,9 +818,11 @@ void xfdashboard_actor_class_init(XfdashboardActorClass 
*klass)
        g_object_class_override_property(gobjectClass, PROP_STYLE_CLASSES, 
"style-classes");
        g_object_class_override_property(gobjectClass, 
PROP_STYLE_PSEUDO_CLASSES, "style-pseudo-classes");
 
-       /* Create param-spec pool for themable properties */
-       g_assert(_xfdashboard_actor_stylable_properties_pool==NULL);
-       
_xfdashboard_actor_stylable_properties_pool=g_param_spec_pool_new(FALSE);
+       /* Define stylable properties */
+       xfdashboard_actor_install_stylable_property_by_name(klass, "x-expand");
+       xfdashboard_actor_install_stylable_property_by_name(klass, "y-expand");
+       xfdashboard_actor_install_stylable_property_by_name(klass, "x-align");
+       xfdashboard_actor_install_stylable_property_by_name(klass, "y-align");
 }
 
 /* Object initialization

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to