[libchamplain/libchamplain-0-4] Add champlain_marker_get_highlight_color
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] Add champlain_marker_get_highlight_color
- Date: Sun, 18 Oct 2009 18:39:16 +0000 (UTC)
commit 63df2c96d9bd5b81f7b7e14a1eb1947a853a161f
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Sun Oct 18 14:39:03 2009 -0400
Add champlain_marker_get_highlight_color
champlain/champlain-marker.c | 13 +++++++++++++
champlain/champlain-marker.h | 1 +
2 files changed, 14 insertions(+), 0 deletions(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]