[gnome-nibbles] remove another deprecated clutter function



commit e1cb8bbae536136fd673c22052edbff526e383dc
Author: Bryan Quigley <bryanquigs src gnome org>
Date:   Sun Apr 28 17:05:52 2013 -0400

    remove another deprecated clutter function

 src/board.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/board.c b/src/board.c
index ee7901a..0de97e3 100644
--- a/src/board.c
+++ b/src/board.c
@@ -57,7 +57,9 @@ gnibbles_board_new (void)
 
   filename = g_build_filename (DATA_DIRECTORY, "pixmaps", "wall-small-empty.svg", NULL);
 
-  board->surface = clutter_texture_new_from_file (filename, NULL);
+  board->surface = gtk_clutter_texture_new();
+  gtk_clutter_texture_set_from_pixbuf (GTK_CLUTTER_TEXTURE (board->surface),
+  gdk_pixbuf_new_from_file (filename, NULL), NULL);
 
   clutter_actor_set_opacity (CLUTTER_ACTOR (board->surface), 100);
   g_value_init (&val, G_TYPE_BOOLEAN);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]