[libchamplain] Use more neutral default background color
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Use more neutral default background color
- Date: Thu, 2 May 2013 19:31:28 +0000 (UTC)
commit 13bfd2d103eedaddebb808d471963bf5cca349d7
Author: Jiří Techet <techet gmail com>
Date: Thu May 2 12:26:03 2013 +0200
Use more neutral default background color
champlain-gtk/gtk-champlain-embed.c | 7 -------
champlain/champlain-view.c | 3 +++
2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/champlain-gtk/gtk-champlain-embed.c b/champlain-gtk/gtk-champlain-embed.c
index 12ca17b..7cf5f79 100644
--- a/champlain-gtk/gtk-champlain-embed.c
+++ b/champlain-gtk/gtk-champlain-embed.c
@@ -217,9 +217,6 @@ set_view (GtkChamplainEmbed *embed,
static void
gtk_champlain_embed_init (GtkChamplainEmbed *embed)
{
- ClutterColor stage_color = { 0x34, 0x39, 0x39, 0xff };
- ClutterActor *stage;
-
GtkChamplainEmbedPrivate *priv = GET_PRIVATE (embed);
embed->priv = priv;
@@ -249,10 +246,6 @@ gtk_champlain_embed_init (GtkChamplainEmbed *embed)
priv->view = NULL;
set_view (embed, CHAMPLAIN_VIEW (champlain_view_new ()));
- /* Setup stage */
- stage = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (priv->clutter_embed));
- clutter_actor_set_background_color (stage, &stage_color);
-
gtk_container_add (GTK_CONTAINER (embed), priv->clutter_embed);
}
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 4b2721f..678ef86 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -975,6 +975,7 @@ champlain_view_init (ChamplainView *view)
ChamplainMapSource *source;
ClutterActor *viewport_container;
ClutterLayoutManager *layout;
+ ClutterColor color = { 0xf1, 0xee, 0xe8, 0xff };
champlain_debug_set_flags (g_getenv ("CHAMPLAIN_DEBUG"));
@@ -1009,6 +1010,8 @@ champlain_view_init (ChamplainView *view)
priv->bg_offset_x = 0;
priv->bg_offset_y = 0;
+ clutter_actor_set_background_color (CLUTTER_ACTOR (view), &color);
+
priv->redraw_timeout = g_timeout_add (350, redraw_timeout_cb, view);
g_signal_connect (view, "notify::width", G_CALLBACK (view_size_changed_cb), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]