Commit dcd3492a authored by Emmanuel Milou's avatar Emmanuel Milou

Get rid of all client compilation warning

parent bfc45748
...@@ -744,7 +744,6 @@ sflphone_place_call ( call_t * c ) ...@@ -744,7 +744,6 @@ sflphone_place_call ( call_t * c )
} }
// Update history // Update history
c->history_state = OUTGOING; c->history_state = OUTGOING;
c->from;
call_list_add(history, c); call_list_add(history, c);
} }
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <calltree.h> #include <calltree.h>
#include <dbus.h> #include <dbus.h>
#include <string.h> #include <glib/gprintf.h>
/* /*
* GQueue * callQueue = NULL; * GQueue * callQueue = NULL;
...@@ -33,7 +33,7 @@ gint ...@@ -33,7 +33,7 @@ gint
is_callID_callstruct ( gconstpointer a, gconstpointer b) is_callID_callstruct ( gconstpointer a, gconstpointer b)
{ {
call_t * c = (call_t*)a; call_t * c = (call_t*)a;
if(strcmp(c->callID, (const gchar*) b) == 0) if(g_strcasecmp(c->callID, (const gchar*) b) == 0)
{ {
return 0; return 0;
} }
......
...@@ -285,7 +285,7 @@ void create_new_entry_in_contactlist (gchar *contact_name, gchar *contact_phone, ...@@ -285,7 +285,7 @@ void create_new_entry_in_contactlist (gchar *contact_name, gchar *contact_phone,
call_t *new_call; call_t *new_call;
/* Check if the information is valid */ /* Check if the information is valid */
if (strcmp (contact_phone, EMPTY_ENTRY) != 0){ if (g_strcasecmp (contact_phone, EMPTY_ENTRY) != 0){
from = g_strconcat("\"" , contact_name, "\"<", contact_phone, ">", NULL); from = g_strconcat("\"" , contact_name, "\"<", contact_phone, ">", NULL);
create_new_call (from, from, CALL_STATE_DIALING, "", &new_call); create_new_call (from, from, CALL_STATE_DIALING, "", &new_call);
new_call->contact_type = type; new_call->contact_type = type;
......
...@@ -80,4 +80,6 @@ void switch_tab( calltab_t* tab ); ...@@ -80,4 +80,6 @@ void switch_tab( calltab_t* tab );
void refresh_tab( calltab_t* tab ); void refresh_tab( calltab_t* tab );
void create_new_entry_in_contactlist (gchar *contact_name, gchar *contact_phone, contact_type_t type);
#endif #endif
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <glib.h> #include <glib.h>
#include <glib/gstring.h> #include <glib/gstring.h>
#include <string.h>
#include <pango/pango.h> #include <pango/pango.h>
#include "eds.h" #include "eds.h"
...@@ -153,7 +154,6 @@ search_sync (const char *query, ...@@ -153,7 +154,6 @@ search_sync (const char *query,
GSList *iter = NULL; GSList *iter = NULL;
GList *contacts = NULL; GList *contacts = NULL;
GList *hits = NULL; GList *hits = NULL;
char ext[30];
EBookQuery* book_query = create_query (query); EBookQuery* book_query = create_query (query);
for (iter = books; iter != NULL; iter = iter->next) { for (iter = books; iter != NULL; iter = iter->next) {
......
...@@ -323,9 +323,7 @@ create_call_menu() ...@@ -323,9 +323,7 @@ create_call_menu()
NULL); NULL);
gtk_widget_show (menu_items); gtk_widget_show (menu_items);
image = gtk_tool_button_new_from_stock (GTK_STOCK_MEDIA_RECORD); recordMenu = gtk_image_menu_item_new_from_stock (GTK_STOCK_MEDIA_RECORD, get_accel_group());
recordMenu = gtk_image_menu_item_new_with_mnemonic(_("_Record"));
gtk_image_menu_item_set_image( GTK_IMAGE_MENU_ITEM ( recordMenu ), image );
gtk_menu_shell_append (GTK_MENU_SHELL (menu), recordMenu); gtk_menu_shell_append (GTK_MENU_SHELL (menu), recordMenu);
gtk_widget_set_sensitive( GTK_WIDGET(recordMenu), FALSE); gtk_widget_set_sensitive( GTK_WIDGET(recordMenu), FALSE);
g_signal_connect_swapped (G_OBJECT (recordMenu), "activate", g_signal_connect_swapped (G_OBJECT (recordMenu), "activate",
...@@ -810,9 +808,7 @@ show_popup_menu (GtkWidget *my_widget, GdkEventButton *event) ...@@ -810,9 +808,7 @@ show_popup_menu (GtkWidget *my_widget, GdkEventButton *event)
if(record) if(record)
{ {
menu_items = gtk_image_menu_item_new_with_mnemonic(_("_Record")); menu_items = gtk_image_menu_item_new_from_stock( GTK_STOCK_MEDIA_RECORD, get_accel_group());
image = gtk_tool_button_new_from_stock (GTK_STOCK_MEDIA_RECORD);
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_items), image);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items);
g_signal_connect (G_OBJECT (menu_items), "activate", g_signal_connect (G_OBJECT (menu_items), "activate",
G_CALLBACK (call_record), G_CALLBACK (call_record),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment