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



commit 5c90113c9f1d13f733907b8350cd342e983ab6c4
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Mar 21 20:33:58 2016 +0100

    Revert "examples: Update test-actors for the Image::set()->set_data() API change."
    
    This reverts commit 0bcc3a8c15b1d391965dfdf3da164e07b5aeca9b.

 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 14a8281..831ef95 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_data(pixbuf->get_pixels(),
+        image->set(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]