From: Pierre-Luc Beaudoin Date: Sun, 18 Oct 2009 18:39:03 +0000 (-0400) Subject: Add champlain_marker_get_highlight_color X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63df2c96d9bd5b81f7b7e14a1eb1947a853a161f;p=libchamplain Add champlain_marker_get_highlight_color --- diff --git a/champlain/champlain-marker.c b/champlain/champlain-marker.c index a511e26..dee7f03 100644 --- a/champlain/champlain-marker.c +++ b/champlain/champlain-marker.c @@ -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, diff --git a/champlain/champlain-marker.h b/champlain/champlain-marker.h index f52e4cb..09d02be 100644 --- a/champlain/champlain-marker.h +++ b/champlain/champlain-marker.h @@ -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