Skip to content
Snippets Groups Projects
Commit 5447a13e authored by areversat's avatar areversat
Browse files

Code cleanup

parent ff303a3c
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@
guint voice_mails;
void
void
sflphone_notify_voice_mail ( const gchar* accountID , guint count )
{
voice_mails = count ;
......@@ -75,7 +75,7 @@ status_bar_display_account( call_t* c)
}
gboolean
gboolean
sflphone_quit ()
{
gboolean quit = FALSE;
......@@ -98,7 +98,7 @@ sflphone_quit ()
return quit;
}
void
void
sflphone_hold(call_t * c )
{
c->state = CALL_STATE_HOLD;
......@@ -247,7 +247,7 @@ sflphone_hang_up()
}
void
void
sflphone_pick_up()
{
call_t * selectedCall = call_get_selected(active_calltree);
......@@ -280,7 +280,7 @@ sflphone_pick_up()
}
}
void
void
sflphone_on_hold ()
{
call_t * selectedCall = call_get_selected(current_calls);
......@@ -298,7 +298,7 @@ sflphone_on_hold ()
}
}
void
void
sflphone_off_hold ()
{
call_t * selectedCall = call_get_selected(current_calls);
......@@ -317,7 +317,7 @@ sflphone_off_hold ()
}
void
void
sflphone_fail( call_t * c )
{
c->state = CALL_STATE_FAILURE;
......@@ -325,7 +325,7 @@ sflphone_fail( call_t * c )
update_menus();
}
void
void
sflphone_busy( call_t * c )
{
c->state = CALL_STATE_BUSY;
......@@ -333,7 +333,7 @@ sflphone_busy( call_t * c )
update_menus();
}
void
void
sflphone_current( call_t * c )
{
c->state = CALL_STATE_CURRENT;
......@@ -341,7 +341,7 @@ sflphone_current( call_t * c )
update_menus();
}
void
void
sflphone_set_transfert()
{
call_t * c = call_get_selected(current_calls);
......@@ -355,7 +355,7 @@ sflphone_set_transfert()
toolbar_update_buttons();
}
void
void
sflphone_unset_transfert()
{
call_t * c = call_get_selected(current_calls);
......@@ -369,7 +369,7 @@ sflphone_unset_transfert()
toolbar_update_buttons();
}
void
void
sflphone_incoming_call (call_t * c)
{
call_list_add ( current_calls,c );
......@@ -378,7 +378,8 @@ sflphone_incoming_call (call_t * c)
update_menus();
}
void process_dialing(call_t * c, guint keyval, gchar * key)
void
process_dialing(call_t * c, guint keyval, gchar * key)
{
// We stop the tone
if(strlen(c->to) == 0 && c->state != CALL_STATE_TRANSFERT){
......@@ -445,7 +446,8 @@ void process_dialing(call_t * c, guint keyval, gchar * key)
}
call_t * sflphone_new_call()
call_t *
sflphone_new_call()
{
// Play a tone when creating a new call
if( call_list_get_size(current_calls) == 0 )
......@@ -470,7 +472,8 @@ call_t * sflphone_new_call()
void
sflphone_keypad( guint keyval, gchar * key){
sflphone_keypad( guint keyval, gchar * key)
{
call_t * c = call_get_selected(current_calls);
if(c)
......@@ -576,7 +579,7 @@ sflphone_keypad( guint keyval, gchar * key){
}
}
}
/*
* Place a call with the default account.
......@@ -643,7 +646,7 @@ sflphone_place_call ( call_t * c )
}
/* Internal to action - set the __CURRENT_ACCOUNT variable */
void
void
sflphone_set_current_account()
{
if( account_list_get_size() > 0 )
......
......@@ -64,7 +64,7 @@ button_pressed(GtkWidget* widget, GdkEventButton *event, gpointer user_data)
/**
* Make a call
*/
static void
static void
call_button( GtkWidget *widget, gpointer data )
{
call_t * selectedCall;
......@@ -90,7 +90,7 @@ call_button( GtkWidget *widget, gpointer data )
/**
* Hang up the line
*/
static void
static void
hang_up( GtkWidget *widget, gpointer data )
{
sflphone_hang_up();
......@@ -99,7 +99,7 @@ hang_up( GtkWidget *widget, gpointer data )
/**
* Hold the line
*/
static void
static void
hold( GtkWidget *widget, gpointer data )
{
sflphone_on_hold();
......@@ -108,7 +108,7 @@ hold( GtkWidget *widget, gpointer data )
/**
* Transfert the line
*/
static void
static void
transfert (GtkToggleToolButton *toggle_tool_button,
gpointer user_data)
{
......@@ -126,7 +126,7 @@ transfert (GtkToggleToolButton *toggle_tool_button,
/**
* Unhold call
*/
static void
static void
unhold( GtkWidget *widget, gpointer data )
{
sflphone_off_hold();
......@@ -152,7 +152,7 @@ toggle_history(GtkToggleToolButton *toggle_tool_button,
g_signal_emit_by_name(sel, "changed");
toolbar_update_buttons();
}
void
void
toolbar_update_buttons ()
{
......@@ -299,7 +299,8 @@ void row_activated(GtkTreeView *tree_view,
GtkWidget *
create_toolbar (){
create_toolbar ()
{
GtkWidget *ret;
GtkWidget *image;
......@@ -372,7 +373,8 @@ create_toolbar (){
}
void
create_call_tree (calltab_t* tab){
create_call_tree (calltab_t* tab)
{
GtkWidget *sw;
GtkCellRenderer *rend;
GtkTreeViewColumn *col;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment