]> err.no Git - libchamplain/commitdiff
Add champlain_marker_get_highlight_color
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 18 Oct 2009 18:39:03 +0000 (14:39 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 18 Oct 2009 18:39:03 +0000 (14:39 -0400)
champlain/champlain-marker.c
champlain/champlain-marker.h

index a511e26f146030cff4567dbe1f37897cb62fc4b6..dee7f032ec8ab8fd57c135bcf026035b3e867c00 100644 (file)
@@ -133,6 +133,19 @@ champlain_marker_set_highlight_color (ClutterColor *color)
   SELECTED_COLOR.alpha = color->alpha;
 }
 
+/**
+ * champlain_marker_get_hightlight_color:
+ *
+ * Returns: the highlight color. Should not be freed.
+ *
+ * Since: 0.4.1
+ */
+const ClutterColor *
+champlain_marker_get_highlight_color ()
+{
+  return &SELECTED_COLOR;
+}
+
 static void
 champlain_marker_get_property (GObject *object,
                                guint prop_id,
index f52e4cb60a7d793a6e122267534362b5c23842cd..09d02be5a34d214db9774b9c9578efa096b9a705 100644 (file)
@@ -112,6 +112,7 @@ gboolean champlain_marker_get_single_line_mode (ChamplainMarker *marker);
 gboolean champlain_marker_get_draw_background (ChamplainMarker *marker);
 
 void champlain_marker_set_highlight_color (ClutterColor *color);
+const ClutterColor * champlain_marker_get_highlight_color (void);
 
 G_END_DECLS