From 63df2c96d9bd5b81f7b7e14a1eb1947a853a161f Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Sun, 18 Oct 2009 14:39:03 -0400 Subject: [PATCH] Add champlain_marker_get_highlight_color --- champlain/champlain-marker.c | 13 +++++++++++++ champlain/champlain-marker.h | 1 + 2 files changed, 14 insertions(+) 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 -- 2.39.5