]> err.no Git - libchamplain/commitdiff
Fix compile warnings
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 15 Oct 2008 21:01:08 +0000 (17:01 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 15 Oct 2008 21:01:08 +0000 (17:01 -0400)
champlain-gtk/champlainviewembed.c
champlain-gtk/launcher.c

index c04ab3ee7e1f5443881ed61d12f90be285c83455..1d884bdb1055d7d12759cce1f64b896726a4ff88 100644 (file)
@@ -33,7 +33,7 @@ enum
 };
 
 
-static guint champlain_view_embed_embed_signals[LAST_SIGNAL] = { 0, };
+//static guint champlain_view_embed_embed_signals[LAST_SIGNAL] = { 0, };
 
 #define CHAMPLAIN_VIEW_EMBED_GET_PRIVATE(obj)    (G_TYPE_INSTANCE_GET_PRIVATE((obj), CHAMPLAIN_TYPE_VIEW_EMBED, ChamplainViewEmbedPrivate))
 
@@ -59,8 +59,8 @@ G_DEFINE_TYPE (ChamplainViewEmbed, champlain_view_embed, GTK_TYPE_ALIGNMENT);
 static void
 champlain_view_embed_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
 {
-  ChamplainViewEmbed *view = CHAMPLAIN_VIEW_EMBED(object);
-  ChamplainViewEmbedPrivate *priv = CHAMPLAIN_VIEW_EMBED_GET_PRIVATE (view);
+  //ChamplainViewEmbed *view = CHAMPLAIN_VIEW_EMBED(object);
+  //ChamplainViewEmbedPrivate *priv = CHAMPLAIN_VIEW_EMBED_GET_PRIVATE (view);
 
   switch(prop_id)
     {
@@ -72,8 +72,8 @@ champlain_view_embed_get_property(GObject *object, guint prop_id, GValue *value,
 static void
 champlain_view_embed_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
 {
-  ChamplainViewEmbed *view = CHAMPLAIN_VIEW_EMBED(object);
-  ChamplainViewEmbedPrivate *priv = CHAMPLAIN_VIEW_EMBED_GET_PRIVATE (view);
+  //ChamplainViewEmbed *view = CHAMPLAIN_VIEW_EMBED(object);
+  //ChamplainViewEmbedPrivate *priv = CHAMPLAIN_VIEW_EMBED_GET_PRIVATE (view);
 
   switch(prop_id)
   {
@@ -85,8 +85,8 @@ champlain_view_embed_set_property(GObject *object, guint prop_id, const GValue *
 static void
 champlain_view_embed_finalize (GObject *object)
 {
-  ChamplainViewEmbed *view = CHAMPLAIN_VIEW_EMBED (object);
-  ChamplainViewEmbedPrivate *priv = CHAMPLAIN_VIEW_EMBED_GET_PRIVATE (view);
+  //ChamplainViewEmbed *view = CHAMPLAIN_VIEW_EMBED (object);
+  //ChamplainViewEmbedPrivate *priv = CHAMPLAIN_VIEW_EMBED_GET_PRIVATE (view);
 
   G_OBJECT_CLASS (champlain_view_embed_parent_class)->finalize (object);
 }
@@ -175,7 +175,7 @@ champlain_view_embed_new (ChamplainView *view)
   // Setup stage
   stage = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (priv->clutter_embed));
   clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
-  clutter_container_add_actor (CLUTTER_CONTAINER (stage), view);
+  clutter_container_add_actor (CLUTTER_CONTAINER (stage), CLUTTER_ACTOR(view));
   
   gtk_container_add (GTK_CONTAINER (embed), priv->clutter_embed);
 
index 4ac7f49a853846e3032a4518f1d3d2ca8f4e14f4..d85fe5f975d3d4561b81f1f23b3b8e34862b88bf 100644 (file)
@@ -121,7 +121,6 @@ main (int argc, char *argv[])
 {
   GtkWidget *window;
   GtkWidget *widget, *vbox, *bbox, *button, *viewport;
-  GtkWidget *scrolled;
   ClutterActor *layer, *view;
   
   g_thread_init (NULL);