mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
refactor connecto_to_* family of functions
This commit is contained in:
parent
fbed7cf5f3
commit
78120467e7
1 changed files with 43 additions and 0 deletions
|
@ -100,6 +100,14 @@ void connect_to_filesource (GESTimelineObject * object, App * app);
|
|||
|
||||
void disconnect_from_filesource (GESTimelineObject * object, App * app);
|
||||
|
||||
void connect_to_object (GESTimelineObject * object, App * app);
|
||||
|
||||
void disconnect_from_object (GESTimelineObject * object, App * app);
|
||||
|
||||
void connect_to_title_source (GESTimelineObject * object, App * app);
|
||||
|
||||
void disconnect_from_title_source (GESTimelineObject * object, App * app);
|
||||
|
||||
/* UI state functions *******************************************************/
|
||||
|
||||
static void
|
||||
|
@ -628,6 +636,41 @@ disconnect_from_filesource (GESTimelineObject * object, App * app)
|
|||
filesource_notify_max_duration_cb, app);
|
||||
}
|
||||
|
||||
void
|
||||
connect_to_title_source (GESTimelineObject * object, App * app)
|
||||
{
|
||||
GESTimelineTitleSource *obj;
|
||||
obj = GES_TIMELINE_TITLE_SOURCE (object);
|
||||
gtk_combo_box_set_active (app->halign, obj->halign);
|
||||
gtk_combo_box_set_active (app->valign, obj->valign);
|
||||
gtk_entry_set_text (app->text, obj->text);
|
||||
}
|
||||
|
||||
void
|
||||
disconnect_from_title_source (GESTimelineObject * object, App * app)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
connect_to_object (GESTimelineObject * object, App * app)
|
||||
{
|
||||
if (GES_IS_TIMELINE_FILE_SOURCE (object)) {
|
||||
connect_to_filesource (object, app);
|
||||
} else if (GES_IS_TIMELINE_TITLE_SOURCE (object)) {
|
||||
connect_to_title_source (object, app);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
disconnect_from_object (GESTimelineObject * object, App * app)
|
||||
{
|
||||
if (GES_IS_TIMELINE_FILE_SOURCE (object)) {
|
||||
disconnect_from_filesource (object, app);
|
||||
} else if (GES_IS_TIMELINE_TITLE_SOURCE (object)) {
|
||||
disconnect_from_title_source (object, app);
|
||||
}
|
||||
}
|
||||
|
||||
gboolean
|
||||
create_ui (App * app)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue