[cluttermm/cluttermm-1-24] examples: Update test-actors for the Image::set()->set_data() API change.



commit 0bcc3a8c15b1d391965dfdf3da164e07b5aeca9b
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Feb 24 14:41:22 2016 +0100

    examples: Update test-actors for the Image::set()->set_data() API change.
    
    See bug #761847

 examples/test-actors.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/examples/test-actors.cc b/examples/test-actors.cc
index 831ef95..14a8281 100644
--- a/examples/test-actors.cc
+++ b/examples/test-actors.cc
@@ -163,7 +163,7 @@ int main(int argc, char *argv[])
         pixbuf = Gdk::Pixbuf::create_from_file("actor.png");
 
         Glib::RefPtr<Clutter::Image> image = Clutter::Image::create();
-        image->set(pixbuf->get_pixels(),
+        image->set_data(pixbuf->get_pixels(),
           (pixbuf->get_has_alpha() ? COGL_PIXEL_FORMAT_RGBA_8888 : COGL_PIXEL_FORMAT_RGB_888),
           pixbuf->get_width(),
           pixbuf->get_height(),


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