connect to layer object-{added,removed} and display message

This commit is contained in:
Brandon Lewis 2010-07-20 19:13:06 +02:00 committed by Edward Hervey
parent db243a2499
commit 2cb291b191

View file

@ -142,6 +142,24 @@ app_dispose (App * app)
} }
} }
/* Backend callbacks ********************************************************/
static void
layer_object_added_cb (GESTimelineLayer * layer, GESTimelineObject * object,
App * app)
{
GST_INFO ("layer object added cb %p %p %p", layer, object, app);
g_print ("layer object added");
}
static void
layer_object_removed_cb (GESTimelineLayer * layer, GESTimelineObject * object,
App * app)
{
GST_INFO ("layer object removed cb %p %p %p", layer, object, app);
g_print ("layer object removed");
}
/* Layout *******************************************************************/ /* Layout *******************************************************************/
GtkWidget * GtkWidget *
@ -158,6 +176,11 @@ create_ui (App * app)
gtk_widget_show (window); gtk_widget_show (window);
g_signal_connect (app->layer, "object-added",
G_CALLBACK (layer_object_added_cb), app);
g_signal_connect (app->layer, "object-removed",
G_CALLBACK (layer_object_removed_cb), app);
return window; return window;
} }