diff --git a/sflphone-gtk/src/accountlist.c b/sflphone-gtk/src/accountlist.c index e48e8e5a3ddd3684b2e61e292abdb52f9c51fbd4..26c729a7d93d315a4bc9eb172196924cfca7fe32 100644 --- a/sflphone-gtk/src/accountlist.c +++ b/sflphone-gtk/src/accountlist.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/accountlist.h b/sflphone-gtk/src/accountlist.h index be480f1a8e72ba35c371dc41dd6d0a868da9db5f..f6640868428a06e6f468662fa2b76c54b2e6a6d4 100644 --- a/sflphone-gtk/src/accountlist.h +++ b/sflphone-gtk/src/accountlist.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/accountwindow.c b/sflphone-gtk/src/accountwindow.c index 37fd38a5c213ba2ad7469698a1af25079444681c..792ac7c87c2168a036c8c11de79b3d3421760b8b 100644 --- a/sflphone-gtk/src/accountwindow.c +++ b/sflphone-gtk/src/accountwindow.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/accountwindow.h b/sflphone-gtk/src/accountwindow.h index 057e30c7360b1dc502bb66a03272145705e19a10..075f626652d61933188bd54b54ebb67dddaa3e68 100644 --- a/sflphone-gtk/src/accountwindow.h +++ b/sflphone-gtk/src/accountwindow.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/actions.c b/sflphone-gtk/src/actions.c index 39362098d0891252f8dfa327f6334ca090ab6d07..4de930beea7eff31a7f10146f195a7dbf7698ac5 100644 --- a/sflphone-gtk/src/actions.c +++ b/sflphone-gtk/src/actions.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -132,6 +132,7 @@ sflphone_fill_account_list() } + toolbar_update_buttons(); } gboolean diff --git a/sflphone-gtk/src/actions.h b/sflphone-gtk/src/actions.h index a063fd92d29299544673cf88a8f443a26a35eb8c..ef4d023b1cf6f902baa7ff98329e5121361d806a 100644 --- a/sflphone-gtk/src/actions.h +++ b/sflphone-gtk/src/actions.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/calllist.c b/sflphone-gtk/src/calllist.c index 0cde618593750069b4d7cb1c114d0b8cf79d843b..4c86412f5ecab5d054bc187f3c915bf594c861f0 100644 --- a/sflphone-gtk/src/calllist.c +++ b/sflphone-gtk/src/calllist.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/calllist.h b/sflphone-gtk/src/calllist.h index 5ee5f793e7a1b65b993eb36a074cfe9f1120d569..8492f4811b667f3bf0d886885844324839c043eb 100644 --- a/sflphone-gtk/src/calllist.h +++ b/sflphone-gtk/src/calllist.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/calltree.c b/sflphone-gtk/src/calltree.c index 769a1b568a84eb9e800b63bc8a0b02a7ff743b1f..8a64f698636ec6b52f2e91569259972d443bede8 100644 --- a/sflphone-gtk/src/calltree.c +++ b/sflphone-gtk/src/calltree.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -89,7 +89,7 @@ unhold( GtkWidget *widget, gpointer data ) } void -update_buttons () +toolbar_update_buttons () { gtk_widget_set_sensitive( GTK_WIDGET(callButton), FALSE); gtk_widget_set_sensitive( GTK_WIDGET(pickupButton), FALSE); @@ -145,7 +145,14 @@ update_buttons () } else { - gtk_widget_set_sensitive( GTK_WIDGET(callButton), TRUE); + if( account_list_get_size() > 0 ) + { + gtk_widget_set_sensitive( GTK_WIDGET(callButton), TRUE); + } + else + { + gtk_widget_set_sensitive( GTK_WIDGET(callButton), FALSE); + } } } /* Call back when the user click on a call in the list */ @@ -164,7 +171,7 @@ selected(GtkTreeSelection *sel, GtkTreeModel *model) call_select((call_t*) g_value_get_pointer(&val)); g_value_unset(&val); - update_buttons(); + toolbar_update_buttons(); } /* A row is activated when it is double clicked */ @@ -309,6 +316,8 @@ create_call_tree (){ gtk_widget_show(ret); + toolbar_update_buttons(); + return ret; } @@ -340,7 +349,7 @@ update_call_tree_remove (call_t * c) call_t * selectedCall = call_get_selected(); if(selectedCall == c) call_select(NULL); - update_buttons(); + toolbar_update_buttons(); } void @@ -430,7 +439,7 @@ update_call_tree (call_t * c) } } - update_buttons(); + toolbar_update_buttons(); //return row_ref; } @@ -486,6 +495,6 @@ update_call_tree_add (call_t * c) //g_free(markup); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(view)); gtk_tree_selection_select_iter(GTK_TREE_SELECTION(sel), &iter); - update_buttons(); + toolbar_update_buttons(); //return row_ref; } diff --git a/sflphone-gtk/src/calltree.h b/sflphone-gtk/src/calltree.h index b1c66cd4b61f0964348955f8f8fd00a3698bfbe5..8f5120a03f29e2f1dbde1c8044993792e77287ce 100644 --- a/sflphone-gtk/src/calltree.h +++ b/sflphone-gtk/src/calltree.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,6 +28,8 @@ */ GtkWidget * create_call_tree(); +void toolbar_update_buttons(); + void update_call_tree_add (call_t * c); void update_call_tree (call_t * c); void update_call_tree_remove (call_t * c); diff --git a/sflphone-gtk/src/configwindow.c b/sflphone-gtk/src/configwindow.c index a85aec923029e707aa5aa9059ba1a058e1f72cf2..ef1260398dafd02d566903b9694cf9ccb97f4326 100644 --- a/sflphone-gtk/src/configwindow.c +++ b/sflphone-gtk/src/configwindow.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/configwindow.h b/sflphone-gtk/src/configwindow.h index b341f4a00481c30a8af1128aa27973cba9fd8d9d..d22c997600a960e3e5258dc3b0393dc3e944e513 100644 --- a/sflphone-gtk/src/configwindow.h +++ b/sflphone-gtk/src/configwindow.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/dbus.c b/sflphone-gtk/src/dbus.c index 5ea591b330f5e39a096b0945ebb465aae1635735..8204766b6a657b93d631ff392ec084cfffe8aa5f 100644 --- a/sflphone-gtk/src/dbus.c +++ b/sflphone-gtk/src/dbus.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/dbus.h b/sflphone-gtk/src/dbus.h index a80ccfc4b3223bac94e68299b86e09d259236686..c0e389dd30d772d1cf0db58bc4d2da229392ecdc 100644 --- a/sflphone-gtk/src/dbus.h +++ b/sflphone-gtk/src/dbus.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/dialpad.c b/sflphone-gtk/src/dialpad.c index 7c82739ca0ebdc48d130266e18a6a31d6c3d4067..cffeaa0999523bff07c52e1c90f3654c537de623 100644 --- a/sflphone-gtk/src/dialpad.c +++ b/sflphone-gtk/src/dialpad.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/dialpad.h b/sflphone-gtk/src/dialpad.h index 82047abdda7eccc9a182006771f6a188db2f80de..2a600534f09ecf57dabb5cf1b74459f1230dbacd 100644 --- a/sflphone-gtk/src/dialpad.h +++ b/sflphone-gtk/src/dialpad.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/main.c b/sflphone-gtk/src/main.c index 50812f5ca79cf1642a07dd15d613c94df7410790..d54bfcbf21da3ad6bce9ebcef51bf39fd132d31e 100644 --- a/sflphone-gtk/src/main.c +++ b/sflphone-gtk/src/main.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/mainwindow.c b/sflphone-gtk/src/mainwindow.c index 9852a791a35936067987b51f4a2c2c0d57c7beb4..10b5deefeaf8f3ddf4ce3d35203c848750b143e1 100644 --- a/sflphone-gtk/src/mainwindow.c +++ b/sflphone-gtk/src/mainwindow.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/mainwindow.h b/sflphone-gtk/src/mainwindow.h index 7e0f1265c44624c254cd0ece15333a4132799718..b9d9cebe3ee6c7294328f50faad7197bd4f0b02a 100644 --- a/sflphone-gtk/src/mainwindow.h +++ b/sflphone-gtk/src/mainwindow.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/menus.c b/sflphone-gtk/src/menus.c index b63c39e057cb2cd1b6a51d58ecc69ed7e43731c9..1468f1208d4c181d6ef51aa1c40589edfa876ae8 100644 --- a/sflphone-gtk/src/menus.c +++ b/sflphone-gtk/src/menus.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/menus.h b/sflphone-gtk/src/menus.h index dd24cf2a548d064df8da7495e39fb42891b05d51..e204ebe3239f09c8f854af2c30dd0c25f53cdeab 100644 --- a/sflphone-gtk/src/menus.h +++ b/sflphone-gtk/src/menus.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/screen.c b/sflphone-gtk/src/screen.c index 4cb6a4d0704df7be44cc97322c5a03f39199487e..b5809fba72298b459287708257fd29b1690297bc 100644 --- a/sflphone-gtk/src/screen.c +++ b/sflphone-gtk/src/screen.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/screen.h b/sflphone-gtk/src/screen.h index 5cc848e602a4799b20a5724a3cbc4bb36f371ed7..2e9c7852c5459337065c265a7b52dfd3cedc4672 100644 --- a/sflphone-gtk/src/screen.h +++ b/sflphone-gtk/src/screen.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/sliders.c b/sflphone-gtk/src/sliders.c index 4bbc8e88a2d1d6cc079094ecf19ddcc189acbc21..5b6a497aa16d60c62830af48629b244ba50f1b70 100644 --- a/sflphone-gtk/src/sliders.c +++ b/sflphone-gtk/src/sliders.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/sliders.h b/sflphone-gtk/src/sliders.h index a3ef0fcfb154771b1a7dbbf9a9481f02b2224e06..2a6f95dd5eeb5a6d4d2e3ca907faf84bdc22a442 100644 --- a/sflphone-gtk/src/sliders.h +++ b/sflphone-gtk/src/sliders.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/statusicon.c b/sflphone-gtk/src/statusicon.c index 8848102723ccc188a454e8c919a15688b7a7e37a..c6c9f8c494e354fcdb9424d3c61ef630af167108 100644 --- a/sflphone-gtk/src/statusicon.c +++ b/sflphone-gtk/src/statusicon.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/sflphone-gtk/src/statusicon.h b/sflphone-gtk/src/statusicon.h index 04fea7a67fa08eb7b9015caaf7c7fb9782051bbf..47247c71ca49be3669c4d525971867bdcaaa27f8 100644 --- a/sflphone-gtk/src/statusicon.h +++ b/sflphone-gtk/src/statusicon.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Savoir-Faire Linux inc. - * Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com> + * Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by