Skip to content
Snippets Groups Projects
Commit 9946a685 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#10725: No need of playback related callbacks in uimanager

parent ed02d8f7
No related branches found
No related tags found
No related merge requests found
......@@ -797,50 +797,6 @@ call_record(void)
sflphone_rec_call();
}
static void
start_playback_record_cb(void)
{
DEBUG("Start playback button pressed");
callable_obj_t *selectedCall = calltab_get_selected_call(history_tab);
if (selectedCall == NULL) {
ERROR("No selected object in playback record callback");
return;
}
DEBUG("Start selected call file playback %s", selectedCall->_recordfile);
selectedCall->_record_is_playing = dbus_start_recorded_file_playback(selectedCall->_recordfile);
update_actions();
}
static void
stop_playback_record_cb(void)
{
DEBUG("Stop playback button pressed");
callable_obj_t *selectedCall = calltab_get_selected_call(history_tab);
if (selectedCall == NULL) {
ERROR("No selected object in history treeview");
return;
}
if (selectedCall) {
if (selectedCall->_recordfile == NULL) {
ERROR("Record file is NULL");
return;
}
dbus_stop_recorded_file_playback(selectedCall->_recordfile);
DEBUG("Stop selected call file playback %s", selectedCall->_recordfile);
selectedCall->_record_is_playing = FALSE;
}
update_actions();
}
static void
call_configuration_assistant(void * foo UNUSED)
{
......@@ -1106,15 +1062,6 @@ static const GtkActionEntry menu_entries[] = {
"Quit", GTK_STOCK_CLOSE, N_("_Quit"), "<control>Q",
N_("Quit the program"), G_CALLBACK(call_quit)
},
{
// "StartPlaybackRecord", GTK_STOCK_MEDIA_PLAY, N_("_Playback record"), NULL,
"StartPlaybackRecord", "OK", N_("_Playback record"), NULL,
N_("Playback recorded file"), G_CALLBACK(start_playback_record_cb)
},
{
"StopPlaybackRecord", "AH", N_("_Stop playback"), NULL,
N_("Stop recorded file playback"), G_CALLBACK(stop_playback_record_cb)
},
// Edit Menu
{ "Edit", NULL, N_("_Edit"), NULL, NULL, NULL },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment