From: Emmanuele Bassi Date: Thu, 8 Jan 2009 16:49:13 +0000 (+0000) Subject: Use ClutterText in the events example X-Git-Url: http://git.maemo.org/git/?p=clutter-gtk;a=commitdiff_plain;h=c797f4079b984b94ace13931bef7c0b32111b73b Use ClutterText in the events example Instead of using ClutterEntry, which has been deprecated in Clutter's master branch, use the newly available ClutterText actor. --- diff --git a/examples/gtk-clutter-events.c b/examples/gtk-clutter-events.c index ec5fb9e..9673aeb 100644 --- a/examples/gtk-clutter-events.c +++ b/examples/gtk-clutter-events.c @@ -20,7 +20,7 @@ on_gtk_entry_changed (GtkEditable *editable, EventApp *app) { const gchar *text = gtk_entry_get_text (GTK_ENTRY (editable)); - clutter_entry_set_text (CLUTTER_ENTRY (app->clutter_entry), text); + clutter_text_set_text (CLUTTER_TEXT (app->clutter_entry), text); } static void @@ -160,7 +160,7 @@ main (gint argc, gchar **argv) NULL); /* Setup the clutter entry */ - actor = clutter_entry_new_full ("Sans 10", "", &text_color); + actor = clutter_text_new_full ("Sans 10", "", &text_color); app->clutter_entry = actor; clutter_group_add (CLUTTER_GROUP (app->stage), actor); clutter_actor_set_position (actor, 0, 0);