[libchamplain] Get rid of double set of default values



commit 1d87f129b70a933fdaccbdf9006fa9e36a0f0969
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Mon May 25 22:22:35 2009 -0400

    Get rid of double set of default values

 champlain/champlain-marker.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/champlain/champlain-marker.c b/champlain/champlain-marker.c
index 970f050..732ea12 100644
--- a/champlain/champlain-marker.c
+++ b/champlain/champlain-marker.c
@@ -299,9 +299,6 @@ champlain_marker_class_init (ChamplainMarkerClass *markerClass)
       g_param_spec_enum ("alignment", "Alignment", "The marker's alignment",
           PANGO_TYPE_ALIGNMENT, PANGO_ALIGN_LEFT, CHAMPLAIN_PARAM_READWRITE));
 
-  static const ClutterColor color = {50, 50, 50, 255};
-  static const ClutterColor text_color = {240, 240, 240, 255};
-
   /**
   * ChamplainMarker:color:
   *
@@ -311,7 +308,7 @@ champlain_marker_class_init (ChamplainMarkerClass *markerClass)
   */
   g_object_class_install_property (object_class, PROP_COLOR,
       clutter_param_spec_color ("color", "Color", "The marker's color",
-          &color, CHAMPLAIN_PARAM_READWRITE));
+          &DEFAULT_COLOR, CHAMPLAIN_PARAM_READWRITE));
 
   /**
   * ChamplainMarker:text-color:
@@ -322,7 +319,7 @@ champlain_marker_class_init (ChamplainMarkerClass *markerClass)
   */
   g_object_class_install_property (object_class, PROP_TEXT_COLOR,
       clutter_param_spec_color ("text-color", "Text Color", "The marker's text color",
-          &text_color, CHAMPLAIN_PARAM_READWRITE));
+          &DEFAULT_TEXT_COLOR, CHAMPLAIN_PARAM_READWRITE));
 
   /**
   * ChamplainMarker:font-name:



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