Commit 3f8e4078 authored by Julien Bonjean's avatar Julien Bonjean

Fixed addressbook related compilation warnings

parent e96c0049
......@@ -235,8 +235,8 @@ init(void)
{
book_data = g_new(book_data_t, 1);
book_data->active = FALSE;
book_data->name = e_source_peek_name(source);
book_data->uid = e_source_peek_uid(source);
book_data->name = g_strdup(e_source_peek_name(source));
book_data->uid = g_strdup(e_source_peek_uid(source));
book_data->ebook = book;
books_data = g_slist_prepend(books_data, book_data);
e_book_open(book, TRUE, NULL);
......@@ -365,7 +365,7 @@ view_contacts_added_cb(EBookView *book_view, GList *contacts,
* Used to call final callback when all books have been read.
*/
static void
view_completed_cb(EBookView *book_view, EBookViewStatus status,
view_completed_cb(EBookView *book_view, EBookViewStatus status UNUSED,
gpointer user_data)
{
Handler_And_Data *had = (Handler_And_Data *) user_data;
......
......@@ -30,6 +30,7 @@
#include <glib/gtypes.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libebook/e-book.h>
#include <sflphone_const.h>
#define EMPTY_ENTRY "empty"
......
......@@ -21,7 +21,6 @@
#include <string.h>
#include <searchbar.h>
#include <calltab.h>
#include <sflphone_const.h>
GtkTreeModel* history_filter;
GtkWidget * history_searchbar_widget;
......@@ -31,7 +30,7 @@ static gboolean history_is_visible (GtkTreeModel*, GtkTreeIter*, gpointer);
void
history_search(GtkEntry* entry){
history_search(GtkEntry* entry UNUSED){
gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(history_filter));
}
......@@ -59,7 +58,7 @@ history_create_filter (GtkTreeModel* child) {
}
static gboolean
history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpointer data) {
history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpointer data UNUSED) {
if( SHOW_SEARCHBAR )
{
......
......@@ -25,12 +25,13 @@
#define __HISTORY_H__
#include <gtk/gtk.h>
#include <sflphone_const.h>
/**
* Execute a search in history
*/
void
history_search(GtkEntry*);
history_search(GtkEntry* entry UNUSED);
/**
* Initialize history
......
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