mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
connect to layer object-{added,removed} and display message
This commit is contained in:
parent
db243a2499
commit
2cb291b191
1 changed files with 23 additions and 0 deletions
|
@ -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 *******************************************************************/
|
||||
|
||||
GtkWidget *
|
||||
|
@ -158,6 +176,11 @@ create_ui (App * app)
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue