[clutter-gtk] Fix compiler warnings
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] Fix compiler warnings
- Date: Fri, 18 Mar 2011 14:30:31 +0000 (UTC)
commit 149f8c29d330f8256ecf8974c6b874c76fbaeea3
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Mar 18 14:30:11 2011 +0000
Fix compiler warnings
GCC 4.6 got more noisy.
clutter-gtk/gtk-clutter-actor.c | 2 --
clutter-gtk/gtk-clutter-embed.c | 4 +---
2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-actor.c b/clutter-gtk/gtk-clutter-actor.c
index 7bf3c62..3a5e5ba 100644
--- a/clutter-gtk/gtk-clutter-actor.c
+++ b/clutter-gtk/gtk-clutter-actor.c
@@ -124,9 +124,7 @@ gtk_clutter_actor_realize (ClutterActor *actor)
GtkClutterActor *clutter = GTK_CLUTTER_ACTOR (actor);
GtkClutterActorPrivate *priv = clutter->priv;
ClutterActor *stage;
- GtkWidget *new_embed;
- new_embed = NULL;
stage = clutter_actor_get_stage (actor);
priv->embed = g_object_get_data (G_OBJECT (stage), "gtk-clutter-embed");
gtk_container_add (GTK_CONTAINER (priv->embed), priv->widget);
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index a288301..c3c9270 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -436,7 +436,6 @@ gtk_clutter_embed_key_event (GtkWidget *widget,
static void
gtk_clutter_embed_style_updated (GtkWidget *widget)
{
- GtkClutterEmbedPrivate *priv;
GdkScreen *screen;
GtkSettings *gtk_settings;
ClutterSettings *clutter_settings;
@@ -447,11 +446,10 @@ gtk_clutter_embed_style_updated (GtkWidget *widget)
gchar *xft_hintstyle, *xft_rgba;
#endif /* HAVE_CLUTTER_GTK_X11 */
- priv = GTK_CLUTTER_EMBED (widget)->priv;
-
if (gtk_widget_get_realized (widget))
{
#if 0
+ GtkClutterEmbedPrivate *priv = GTK_CLUTTER_EMBED (widget)->priv;
GtkStyleContext *style_context;
GtkStateFlags state_flags;
GdkRGBA *bg_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]