[monet/style-stylable] [stylable] prefix stylable properties with 'style'



commit f30f5e8b672d8554ea54bc9dbbb52bff4a640fe1
Author: Thomas Wood <thomas wood intel com>
Date:   Fri Sep 18 15:05:53 2009 +0100

    [stylable] prefix stylable properties with 'style'

 monet/mn-stylable.c |   16 ++++++++--------
 monet/mn-style.c    |   16 ++++++++--------
 2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/monet/mn-stylable.c b/monet/mn-stylable.c
index 632c996..a9f519e 100644
--- a/monet/mn-stylable.c
+++ b/monet/mn-stylable.c
@@ -125,29 +125,29 @@ mn_stylable_base_init (gpointer g_iface)
                                MN_PARAM_READWRITE);
   g_object_interface_install_property (g_iface, pspec);
 
-  pspec = g_param_spec_string ("type",
-                               "Type",
+  pspec = g_param_spec_string ("style-type",
+                               "Style Type",
                                "String representation of the item's type",
                                "",
                                MN_PARAM_READWRITE);
   g_object_interface_install_property (g_iface, pspec);
 
-  pspec = g_param_spec_string ("class",
-                               "Class",
+  pspec = g_param_spec_string ("style-class",
+                               "Style Class",
                                "String representation of the item's class",
                                "",
                                MN_PARAM_READWRITE);
   g_object_interface_install_property (g_iface, pspec);
 
-  pspec = g_param_spec_string ("id",
-                               "id",
+  pspec = g_param_spec_string ("style-id",
+                               "Style ID",
                                "String representation of the item's name",
                                "",
                                MN_PARAM_READWRITE);
   g_object_interface_install_property (g_iface, pspec);
 
-  pspec = g_param_spec_string ("pseudo-class",
-                               "Pseudo Class",
+  pspec = g_param_spec_string ("style-pseudo-class",
+                               "Style Pseudo Class",
                                "Pseudo class, such as current state",
                                "",
                                MN_PARAM_READWRITE);
diff --git a/monet/mn-style.c b/monet/mn-style.c
index 44a2d61..a2f3f98 100644
--- a/monet/mn-style.c
+++ b/monet/mn-style.c
@@ -397,10 +397,10 @@ get_container (mn_style_node_t *node)
   container->iface = node->iface;
   container->stylable = MN_STYLABLE (parent);
   g_object_get (parent,
-                "id", container->id,
-                "class", container->class,
-                "type", container->type,
-                "pseudo-class", container->pseudo_class,
+                "style-id", &container->id,
+                "style-class", &container->class,
+                "style-type", &container->type,
+                "style-pseudo-class", &container->pseudo_class,
                 NULL);
 
   g_object_unref (parent);
@@ -597,10 +597,10 @@ mn_style_get_ccss_query (MnStyle         *style,
       ccss_node->iface = iface;
       ccss_node->stylable = stylable;
       g_object_get (stylable,
-                    "id", ccss_node->id,
-                    "class", ccss_node->class,
-                    "type", ccss_node->type,
-                    "pseudo-class", ccss_node->pseudo_class,
+                    "style-id", &ccss_node->id,
+                    "style-class", &ccss_node->class,
+                    "style-type", &ccss_node->type,
+                    "style-pseudo-class", &ccss_node->pseudo_class,
                     NULL);
 
       g_hash_table_insert (style->priv->node_hash, stylable, ccss_node);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]