Skip to content
Snippets Groups Projects
Commit 6281bb80 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Merge branch 'master' into sip_server

parents 56d6ae97 59232af1
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ dnl SFLPhone - configure.ac for automake 1.9 and autoconf 2.59 ...@@ -2,7 +2,7 @@ dnl SFLPhone - configure.ac for automake 1.9 and autoconf 2.59
dnl dnl
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59) AC_PREREQ(2.59)
AC_INIT([SFLPhone],[0.9.2-7],[sflphoneteam@savoirfairelinux.com],[sflphone]) AC_INIT([SFLPhone],[0.9.3],[sflphoneteam@savoirfairelinux.com],[sflphone])
AC_COPYRIGHT([[Copyright (c) Savoir-Faire Linux 2004-2009]]) AC_COPYRIGHT([[Copyright (c) Savoir-Faire Linux 2004-2009]])
AC_REVISION([$Revision$]) AC_REVISION([$Revision$])
......
AC_INIT([SFLphone],[0.9.2-7],[sflphoneteam@savoirfairelinux.com],[sflphone]) AC_INIT([SFLphone],[0.9.3],[sflphoneteam@savoirfairelinux.com],[sflphone])
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
PACKAGE=SFLphone PACKAGE=SFLphone
VERSION=0.9.2-7 VERSION=0.9.3
AM_INIT_AUTOMAKE($PACKAGE,$VERSION) AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
...@@ -15,7 +15,7 @@ AC_ARG_WITH(debug, ...@@ -15,7 +15,7 @@ AC_ARG_WITH(debug,
[with_debug=no] [with_debug=no]
) )
if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then
CFLAGS="$CFLAGS -g -DDEBUG -Wall -Wextra" CFLAGS="$CFLAGS -g -O2 -DDEBUG -Wall -Wextra"
else else
CFLAGS="$CFLAGS -g -Wall -O2" CFLAGS="$CFLAGS -g -Wall -O2"
fi fi
......
...@@ -165,4 +165,7 @@ void sflphone_set_current_account(); ...@@ -165,4 +165,7 @@ void sflphone_set_current_account();
*/ */
void sflphone_fill_codec_list(); void sflphone_fill_codec_list();
void sflphone_record (call_t *c);
void sflphone_rec_call (void);
#endif #endif
...@@ -184,8 +184,9 @@ clean_history( void ) ...@@ -184,8 +184,9 @@ clean_history( void )
select_account(GtkTreeSelection *selection, GtkTreeModel *model) select_account(GtkTreeSelection *selection, GtkTreeModel *model)
{ {
GtkTreeIter iter; GtkTreeIter iter;
GValue val = {0}; GValue val;
memset (&val, 0, sizeof(val));
if (!gtk_tree_selection_get_selected(selection, &model, &iter)) if (!gtk_tree_selection_get_selected(selection, &model, &iter))
{ {
selectedAccount = NULL; selectedAccount = NULL;
......
...@@ -178,7 +178,7 @@ error_alert(DBusGProxy *proxy UNUSED, ...@@ -178,7 +178,7 @@ error_alert(DBusGProxy *proxy UNUSED,
} }
static void nameOwnerChanged(DBusGProxy *proxy, char *name, char *old_owner, char *new_owner, gpointer data ) static void nameOwnerChanged(DBusGProxy *proxy UNUSED, char *name , char *old_owner, char *new_owner, gpointer data UNUSED)
{ {
#if 0 #if 0
g_print("******************************************************************\n"); g_print("******************************************************************\n");
...@@ -1293,7 +1293,11 @@ dbus_set_record(const call_t * c) ...@@ -1293,7 +1293,11 @@ dbus_set_record(const call_t * c)
org_sflphone_SFLphone_CallManager_set_recording ( org_sflphone_SFLphone_CallManager_set_recording (
callManagerProxy, callManagerProxy,
c->callID, c->callID,
error); &error);
if(error)
{
g_error_free(error);
}
g_print("called dbus_set_record on CallManager\n"); g_print("called dbus_set_record on CallManager\n");
} }
...@@ -1589,10 +1593,10 @@ void dbus_set_stun_server( gchar* server) ...@@ -1589,10 +1593,10 @@ void dbus_set_stun_server( gchar* server)
} }
} }
guint dbus_stun_is_enabled (void) gint dbus_stun_is_enabled (void)
{ {
GError* error = NULL; GError* error = NULL;
guint stun; gint stun;
org_sflphone_SFLphone_ConfigurationManager_is_stun_enabled( org_sflphone_SFLphone_ConfigurationManager_is_stun_enabled(
configurationManagerProxy, configurationManagerProxy,
&stun, &stun,
......
...@@ -432,7 +432,7 @@ guint dbus_get_sip_port(); ...@@ -432,7 +432,7 @@ guint dbus_get_sip_port();
gchar* dbus_get_stun_server (void); gchar* dbus_get_stun_server (void);
void dbus_set_stun_server( gchar* server); void dbus_set_stun_server( gchar* server);
guint dbus_stun_is_enabled (void); gint dbus_stun_is_enabled (void);
void dbus_enable_stun (void); void dbus_enable_stun (void);
void dbus_set_record (const call_t * c); void dbus_set_record (const call_t * c);
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <string.h>
#include <historyfilter.h> #include <historyfilter.h>
#include <calltree.h> #include <calltree.h>
...@@ -35,9 +37,11 @@ is_visible(GtkTreeModel* model, GtkTreeIter* iter, gpointer data UNUSED) ...@@ -35,9 +37,11 @@ is_visible(GtkTreeModel* model, GtkTreeIter* iter, gpointer data UNUSED)
{ {
if( SHOW_SEARCHBAR ) if( SHOW_SEARCHBAR )
{ {
GValue val = {0,}; GValue val;
gchar* text = NULL; gchar* text = NULL;
gchar* search = (gchar*)gtk_entry_get_text(GTK_ENTRY(filter_entry)); gchar* search = (gchar*)gtk_entry_get_text(GTK_ENTRY(filter_entry));
memset (&val, 0, sizeof(val));
gtk_tree_model_get_value(GTK_TREE_MODEL(model), iter, 1, &val); gtk_tree_model_get_value(GTK_TREE_MODEL(model), iter, 1, &val);
if(G_VALUE_HOLDS_STRING(&val)){ if(G_VALUE_HOLDS_STRING(&val)){
text = (gchar *)g_value_get_string(&val); text = (gchar *)g_value_get_string(&val);
...@@ -45,6 +49,7 @@ is_visible(GtkTreeModel* model, GtkTreeIter* iter, gpointer data UNUSED) ...@@ -45,6 +49,7 @@ is_visible(GtkTreeModel* model, GtkTreeIter* iter, gpointer data UNUSED)
if(text != NULL && g_ascii_strncasecmp(search, _("Search"), 6) != 0){ if(text != NULL && g_ascii_strncasecmp(search, _("Search"), 6) != 0){
return g_regex_match_simple(search, text, G_REGEX_CASELESS, 0); return g_regex_match_simple(search, text, G_REGEX_CASELESS, 0);
} }
g_value_unset (&val);
return TRUE; return TRUE;
} }
return TRUE; return TRUE;
......
...@@ -66,18 +66,21 @@ main_window_ask_quit(){ ...@@ -66,18 +66,21 @@ main_window_ask_quit(){
if(count == 1) if(count == 1)
{ {
question = _("<b>There is one call in progress.</b>\nDo you still want to quit?"); question = _("There is one call in progress.");
} }
else else
{ {
question = _("<b>There are calls in progress.</b>\nDo you still want to quit?"); question = _("There are calls in progress.");
} }
dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW(window) , dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW(window) ,
GTK_DIALOG_MODAL, GTK_DIALOG_MODAL,
GTK_MESSAGE_QUESTION, GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO, GTK_BUTTONS_YES_NO,
question); "<b>%s<b>\n%s",
question,
_("Do you still want to quit?") );
response = gtk_dialog_run (GTK_DIALOG (dialog)); response = gtk_dialog_run (GTK_DIALOG (dialog));
...@@ -209,6 +212,7 @@ main_window_message(GtkMessageType type, gchar * markup){ ...@@ -209,6 +212,7 @@ main_window_message(GtkMessageType type, gchar * markup){
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
type, type,
GTK_BUTTONS_CLOSE, GTK_BUTTONS_CLOSE,
"%s\n",
markup); markup);
gtk_dialog_run (GTK_DIALOG(dialog)); gtk_dialog_run (GTK_DIALOG(dialog));
......
...@@ -492,23 +492,9 @@ edit_paste ( void * foo UNUSED) ...@@ -492,23 +492,9 @@ edit_paste ( void * foo UNUSED)
} }
static void static void
clear_history( void* foo UNUSED) clear_history (void)
{ {
gchar *markup; if( call_list_get_size( history ) != 0 ){
GtkWidget *dialog;
int response;
if( call_list_get_size( history ) == 0 ){
markup = g_markup_printf_escaped(_("History empty"));
dialog = gtk_message_dialog_new_with_markup ( GTK_WINDOW(get_main_window()),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO,
GTK_BUTTONS_CLOSE,
markup);
response = gtk_dialog_run (GTK_DIALOG(dialog));
gtk_widget_destroy (GTK_WIDGET(dialog));
}
else{
call_list_clean_history(); call_list_clean_history();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment