[cluttermm_tutorial] Use the new paint_vfunc() instead of the deprecated on_paint().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm_tutorial] Use the new paint_vfunc() instead of the deprecated on_paint().
- Date: Thu, 17 Apr 2014 19:35:58 +0000 (UTC)
commit 238ab33ce8122fefb0095b87b8eb607373f6ef6b
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Apr 17 21:35:34 2014 +0200
Use the new paint_vfunc() instead of the deprecated on_paint().
examples/custom_actor/triangle_actor.cc | 2 +-
examples/custom_actor/triangle_actor.h | 2 +-
examples/custom_container/examplebox.cc | 2 +-
examples/custom_container/examplebox.h | 2 +-
examples/scrolling/scrollingcontainer.cc | 2 +-
examples/scrolling/scrollingcontainer.h | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/examples/custom_actor/triangle_actor.cc b/examples/custom_actor/triangle_actor.cc
index 1aee143..4824769 100644
--- a/examples/custom_actor/triangle_actor.cc
+++ b/examples/custom_actor/triangle_actor.cc
@@ -75,7 +75,7 @@ void Triangle::do_triangle_paint(const CoglColor* color)
cogl_framebuffer_pop_matrix(fb);
}
-void Triangle::on_paint()
+void Triangle::paint_vfunc()
{
CoglColor coglcolor;
diff --git a/examples/custom_actor/triangle_actor.h b/examples/custom_actor/triangle_actor.h
index 1b1b128..9a4f011 100644
--- a/examples/custom_actor/triangle_actor.h
+++ b/examples/custom_actor/triangle_actor.h
@@ -38,7 +38,7 @@ protected:
Triangle();
explicit Triangle(const Clutter::Color& color);
- virtual void on_paint();
+ virtual void paint_vfunc();
virtual void pick_vfunc(const Clutter::Color& color);
private:
diff --git a/examples/custom_container/examplebox.cc b/examples/custom_container/examplebox.cc
index ff39a6b..ae8cf5c 100644
--- a/examples/custom_container/examplebox.cc
+++ b/examples/custom_container/examplebox.cc
@@ -109,7 +109,7 @@ void Box::foreach_vfunc(ClutterCallback callback, gpointer user_data)
callback((*p)->gobj(), user_data);
}
-void Box::on_paint()
+void Box::paint_vfunc()
{
CoglFramebuffer* fb = cogl_get_draw_framebuffer();
cogl_framebuffer_push_matrix(fb);
diff --git a/examples/custom_container/examplebox.h b/examples/custom_container/examplebox.h
index d45eb4c..4c27a02 100644
--- a/examples/custom_container/examplebox.h
+++ b/examples/custom_container/examplebox.h
@@ -45,7 +45,7 @@ protected:
virtual void foreach_vfunc(ClutterCallback callback, gpointer user_data);
// Clutter::Actor interface:
- virtual void on_paint();
+ virtual void paint_vfunc();
virtual void show_all_vfunc();
virtual void hide_all_vfunc();
virtual void pick_vfunc(const Clutter::Color& color);
diff --git a/examples/scrolling/scrollingcontainer.cc b/examples/scrolling/scrollingcontainer.cc
index 1028b89..ce6c03b 100644
--- a/examples/scrolling/scrollingcontainer.cc
+++ b/examples/scrolling/scrollingcontainer.cc
@@ -121,7 +121,7 @@ void ScrollingContainer::foreach_vfunc(ClutterCallback callback, gpointer user_d
clutter_container_foreach(children_->Clutter::Container::gobj(), callback, user_data);
}
-void ScrollingContainer::on_paint()
+void ScrollingContainer::paint_vfunc()
{
border_ ->paint();
children_->paint();
diff --git a/examples/scrolling/scrollingcontainer.h b/examples/scrolling/scrollingcontainer.h
index cd9401c..d1a56f0 100644
--- a/examples/scrolling/scrollingcontainer.h
+++ b/examples/scrolling/scrollingcontainer.h
@@ -43,7 +43,7 @@ protected:
virtual void foreach_vfunc(ClutterCallback callback, gpointer user_data);
// Clutter::Actor interface:
- virtual void on_paint();
+ virtual void paint_vfunc();
virtual void on_show();
virtual void on_hide();
virtual void show_all_vfunc();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]