diff --git a/sflphone-gtk/src/actions.c b/sflphone-gtk/src/actions.c index 2025c4379454621bd321170b5bab0a6bd07345aa..a684cd32316e4130cdd380ac6f2e26b76eb51f95 100644 --- a/sflphone-gtk/src/actions.c +++ b/sflphone-gtk/src/actions.c @@ -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 ) diff --git a/sflphone-gtk/src/calltree.c b/sflphone-gtk/src/calltree.c index 301eef9013a983d2860a3314fdf83b33b8948bd4..1f3754097ac126488f0747627d9a521fa51aae9e 100644 --- a/sflphone-gtk/src/calltree.c +++ b/sflphone-gtk/src/calltree.c @@ -65,7 +65,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; @@ -91,7 +91,7 @@ call_button( GtkWidget *widget, gpointer data ) /** * Hang up the line */ - static void +static void hang_up( GtkWidget *widget, gpointer data ) { sflphone_hang_up(); @@ -100,7 +100,7 @@ hang_up( GtkWidget *widget, gpointer data ) /** * Hold the line */ - static void +static void hold( GtkWidget *widget, gpointer data ) { sflphone_on_hold(); @@ -109,7 +109,7 @@ hold( GtkWidget *widget, gpointer data ) /** * Transfert the line */ - static void +static void transfert (GtkToggleToolButton *toggle_tool_button, gpointer user_data) { @@ -127,7 +127,7 @@ transfert (GtkToggleToolButton *toggle_tool_button, /** * Unhold call */ - static void +static void unhold( GtkWidget *widget, gpointer data ) { sflphone_off_hold(); @@ -171,7 +171,7 @@ call_mailbox( GtkWidget* widget , gpointer data ) sflphone_place_call( mailboxCall ); } - void +void toolbar_update_buttons () { @@ -320,7 +320,8 @@ void row_activated(GtkTreeView *tree_view, GtkWidget * -create_toolbar (){ +create_toolbar () +{ GtkWidget *ret; GtkWidget *image; @@ -402,7 +403,8 @@ create_toolbar (){ } void -create_call_tree (calltab_t* tab){ +create_call_tree (calltab_t* tab) +{ GtkWidget *sw; GtkCellRenderer *rend; GtkTreeViewColumn *col; @@ -606,7 +608,7 @@ update_call_tree_add (calltab_t* tab, call_t * c) call_get_name(c), call_get_number(c)); - gtk_list_store_append (tab->store, &iter); + gtk_list_store_prepend (tab->store, &iter); switch(c->state) {