Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
9946a685
Commit
9946a685
authored
May 29, 2012
by
Alexandre Savard
Browse files
#10725: No need of playback related callbacks in uimanager
parent
ed02d8f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
gnome/src/uimanager.c
View file @
9946a685
...
...
@@ -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
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment