Commit 0bb402f2 authored by Julien Bonjean's avatar Julien Bonjean

Commit tmp (makefile à fixer)

parent ba9b45eb
......@@ -10,6 +10,6 @@ libtoolize --force
autoheader
autoconf -f
automake -a
./configure $@
#./configure $@
......@@ -42,6 +42,7 @@ AC_SUBST(DEPS_LIBS)
AC_OUTPUT([
Makefile
src/Makefile
src/contactlist/Makefile
pixmaps/Makefile
sflphone.desktop
])
......
bin_PROGRAMS = sflphone-gtk
SUBDIRS=contactlist
noinst_LTLIBRARIES = libsflphonegtk.la
NOFIFY_LIBS=-lnotify
SEXY_LIBS=-lsexy
......@@ -35,13 +39,18 @@ sflphone_gtk_SOURCES = \
codeclist.c \
timestamp.c \
reqaccount.c
noinst_HEADERS = actions.h dbus.h sflnotify.h mainwindow.h calllist.h dialpad.h audioconf.h codeclist.h assistant.h \
callmanager-glue.h errors.h sflphone_const.h configurationmanager-glue.h instance-glue.h menus.h calltab.h calltree.h configwindow.h \
accountlist.h accountwindow.h marshaller.h sliders.h $(STATUSICON_HEADER) timestamp.h historyfilter.c reqaccount.h
EXTRA_DIST = marshaller.list
sflphone_gtk_LDADD = $(DEPS_LIBS) $(NOTIFY_LIBS) $(SEXY_LIBS)
sflphone_gtk_LDADD = $(DEPS_LIBS) $(NOTIFY_LIBS) $(SEXY_LIBS) \
./libsflphonegtk.la
libsflphonegtk_la_LIBADD = \
contactlist/libcontact.la
AM_CPPFLAGS = $(DEPS_CFLAGS) \
-DICONS_DIR=\""$(prefix)/share/sflphone"\" \
......
This diff is collapsed.
/*
* Copyright (C) 2007 Savoir-Faire Linux inc.
* Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
*
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __CALLLIST_H__
#define __CALLLIST_H__
......@@ -25,31 +25,31 @@
/** @file calllist.h
* @brief A list to hold calls.
*/
/** @enum call_state_t
/** @enum call_state_t
* This enum have all the states a call can take.
*/
typedef enum
{ /** Invalid state */
CALL_STATE_INVALID = 0,
CALL_STATE_INVALID = 0,
/** Ringing incoming call */
CALL_STATE_INCOMING,
CALL_STATE_INCOMING,
/** Ringing outgoing call */
CALL_STATE_RINGING,
CALL_STATE_RINGING,
/** Call to which the user can speak and hear */
CALL_STATE_CURRENT,
CALL_STATE_CURRENT,
/** Call which numbers are being added by the user */
CALL_STATE_DIALING,
CALL_STATE_DIALING,
/** Call is on hold */
CALL_STATE_HOLD,
CALL_STATE_HOLD,
/** Call has failed */
CALL_STATE_FAILURE,
CALL_STATE_FAILURE,
/** Call is busy */
CALL_STATE_BUSY,
CALL_STATE_BUSY,
/** Call is being transfert. During this state, the user can enter the new number. */
CALL_STATE_TRANSFERT,
/** Call is on hold */
CALL_STATE_RECORD
CALL_STATE_RECORD
} call_state_t;
/**
......@@ -66,7 +66,7 @@ typedef enum
/** @struct call_t
* @brief Call information.
* This struct holds information about a call.
* This struct holds information about a call.
*/
typedef struct {
/** Unique identifier of the call */
......@@ -100,6 +100,7 @@ typedef struct {
calltab_t* current_calls;
calltab_t* history;
calltab_t* contacts;
/** This function initialize a call list. */
void call_list_init (calltab_t* tab);
......@@ -111,22 +112,22 @@ void call_list_clean(calltab_t* tab);
void call_list_reset (calltab_t* tab);
/** Get the maximun number of calls in the history calltab */
gdouble call_history_get_max_calls( void );
gdouble call_history_get_max_calls( void );
/** Set the maximun number of calls in the history calltab */
void call_history_set_max_calls( const gdouble number );
void call_history_set_max_calls( const gdouble number );
/** This function append a call to list.
* @param c The call you want to add
/** This function append a call to list.
* @param c The call you want to add
* */
void call_list_add (calltab_t* tab, call_t * c);
/** This function remove a call from list.
/** This function remove a call from list.
* @param callID The callID of the call you want to remove
*/
void call_list_remove (calltab_t* tab, const gchar * callID);
/** Return the first call that corresponds to the state.
/** Return the first call that corresponds to the state.
* This is usefull for unique states as DIALING and CURRENT.
* @param state The state
* @return A call or NULL */
......@@ -151,10 +152,10 @@ call_t * call_list_get (calltab_t* tab, const gchar * callID );
* @return The full name of the caller or an empty string */
gchar * call_get_name ( const call_t * c);
/**
/**
* This function parse the call_t.from field to return the number
* @param c The call
* @return The number of the caller
* @return The number of the caller
*/
gchar * call_get_number (const call_t * c);
......@@ -178,4 +179,4 @@ void call_list_clean_history();
*/
void call_list_remove_from_history( call_t* c);
#endif
#endif
/*
* Copyright (C) 2007 Savoir-Faire Linux inc.
* Author: Antoine Reversat <antoine.reversat@savoirfairelinux.com>
*
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
......@@ -27,6 +27,7 @@ calltab_t*
calltab_init()
{
calltab_t* ret;
ret = malloc(sizeof(calltab_t));
ret->store = NULL;
......@@ -37,6 +38,6 @@ calltab_init()
create_call_tree(ret);
call_list_init(ret);
return ret;
}
/*
* Copyright (C) 2007 Savoir-Faire Linux inc.
* Author: Antoine Reversat <antoine.reversat@savoirfairelinux.com>
*
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __NOTEBOOK_H__
#define __NOTEBOOK_H__
......@@ -24,6 +24,7 @@
#include <gtk/gtk.h>
GtkTreeModel* histfilter;
GtkTreeModel* contactfilter;
calltab_t* calltab_init();
......
This diff is collapsed.
/*
* Copyright (C) 2007 Savoir-Faire Linux inc.
* Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
*
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __CALLTREE_H__
#define __CALLTREE_H__
......@@ -32,6 +32,7 @@
*/
GtkToolItem * historyButton;
GtkToolItem * contactButton;
calltab_t* active_calltree;
/**
......@@ -54,7 +55,7 @@ void update_call_tree_add (calltab_t* ct, call_t * c);
/*
* Update the call tree if the call state changes
* @param c The call to update
*/
*/
void update_call_tree (calltab_t* ct, call_t * c);
/**
* Remove a call from the call tree
......@@ -70,4 +71,4 @@ GtkWidget * create_toolbar();
void switch_tab( void );
#endif
#endif
This diff is collapsed.
noinst_LTLIBRARIES = libcontact.la
libcontact_la_SOURCES = \
eds.c
libcontact_la_LDFLAGS= -pthread -lebook-1.2 -lgnome-2 -lpopt -ledataserver-1.2 -lxml2 -lgconf-2 -lsoup-2.4 -lbonobo-2 -lbonobo-activation -lORBit-2 -lgthread-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgmodule-2.0 -lgobject-2.0 -lglib-2.0
libcontact_la_CFLAGS=-DORBIT2=1 -pthread -I/usr/include/evolution-data-server-2.24 -I/usr/include/libbonobo-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pygtk-2.0
This diff is collapsed.
#ifndef __DESKBAR_EVOLUTION_H__
#define __DESKBAR_EVOLUTION_H__
#include <glib/gtypes.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
G_BEGIN_DECLS
typedef struct _Hit {
gchar *text;
gchar *email;
GdkPixbuf *pixbuf;
gchar *uri;
} Hit;
void free_hit (Hit *hit, gpointer unused);
typedef void (* SearchAsyncHandler) (GList *hits, gpointer user_data);
void init (void);
void set_pixbuf_size (int size);
void search_async (const char *query,
int max_results,
SearchAsyncHandler handler,
gpointer user_data);
GList * search_sync (const char *query,
int max_results);
G_END_DECLS
#endif /* __DESKBAR_EVOLUTION_H__ */
INCLUDE=-I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0
LIB=/usr/local/lib
CFLAGS=-ansi -pedantic
EVOLUTION_CFLAGS = -DORBIT2=1 -pthread -I/usr/include/evolution-data-server-2.24 -I/usr/include/libbonobo-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pygtk-2.0
EVOLUTION_LIBS = -pthread -lebook-1.2 -lgnome-2 -lpopt -ledataserver-1.2 -lxml2 -lgconf-2 -lsoup-2.4 -lbonobo-2 -lbonobo-activation -lORBit-2 -lgthread-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgmodule-2.0 -lgobject-2.0 -lglib-2.0
all:
gcc $(CFLAGS) -c eds.c $(INCLUDE) -L$(LIB) $(EVOLUTION_CFLAGS) $(EVOLUTION_LIBS)
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by FULL-PACKAGE-NAME configure VERSION, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = sfl-laptop34
uname -m = i686
uname -r = 2.6.28.6
uname -s = Linux
uname -v = #1 SMP Wed Feb 18 11:08:34 EST 2009
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/jbonjean/bin
PATH: /home/jbonjean/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin
PATH: /opt/EnterpriseDB/8.2/dbserver/bin
PATH: /home/jbonjean/progs/xmlformat-1.04
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1697: checking for gcc
configure:1713: found /usr/bin/gcc
configure:1724: result: gcc
configure:1962: checking for C compiler version
configure:1969: gcc --version >&5
gcc (Ubuntu 4.3.2-1ubuntu12) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1972: $? = 0
configure:1979: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)
configure:1982: $? = 0
configure:1989: gcc -V >&5
gcc: '-V' option must have argument
configure:1992: $? = 1
configure:2015: checking for C compiler default output file name
configure:2042: gcc conftest.c >&5
configure:2045: $? = 0
configure:2083: result: a.out
configure:2100: checking whether the C compiler works
configure:2110: ./a.out
configure:2113: $? = 0
configure:2130: result: yes
configure:2137: checking whether we are cross compiling
configure:2139: result: no
configure:2142: checking for suffix of executables
configure:2149: gcc -o conftest conftest.c >&5
configure:2152: $? = 0
configure:2176: result:
configure:2182: checking for suffix of object files
configure:2208: gcc -c conftest.c >&5
configure:2211: $? = 0
configure:2234: result: o
configure:2238: checking whether we are using the GNU C compiler
configure:2267: gcc -c conftest.c >&5
configure:2273: $? = 0
configure:2290: result: yes
configure:2295: checking whether gcc accepts -g
configure:2325: gcc -c -g conftest.c >&5
configure:2331: $? = 0
configure:2430: result: yes
configure:2447: checking for gcc option to accept ISO C89
configure:2521: gcc -c -g -O2 conftest.c >&5
configure:2527: $? = 0
configure:2550: result: none needed
configure:2573: checking for main in -lcairo
configure:2602: gcc -o conftest -g -O2 conftest.c -lcairo >&5
configure:2608: $? = 0
configure:2626: result: yes
configure:2639: checking for main in -lfontconfig
configure:2668: gcc -o conftest -g -O2 conftest.c -lfontconfig -lcairo >&5
configure:2674: $? = 0
configure:2692: result: yes
configure:2705: checking for main in -lfreetype
configure:2734: gcc -o conftest -g -O2 conftest.c -lfreetype -lfontconfig -lcairo >&5
configure:2740: $? = 0
configure:2758: result: yes
configure:2771: checking for main in -lm
configure:2800: gcc -o conftest -g -O2 conftest.c -lm -lfreetype -lfontconfig -lcairo >&5
configure:2806: $? = 0
configure:2824: result: yes
configure:2837: checking for main in -lpopt
configure:2866: gcc -o conftest -g -O2 conftest.c -lpopt -lm -lfreetype -lfontconfig -lcairo >&5
configure:2872: $? = 0
configure:2890: result: yes
configure:2903: checking for main in -lrt
configure:2932: gcc -o conftest -g -O2 conftest.c -lrt -lpopt -lm -lfreetype -lfontconfig -lcairo >&5
configure:2938: $? = 0
configure:2956: result: yes
configure:2969: checking for main in -lxml2
configure:2998: gcc -o conftest -g -O2 conftest.c -lxml2 -lrt -lpopt -lm -lfreetype -lfontconfig -lcairo >&5
configure:3004: $? = 0
configure:3022: result: yes
configure:3035: checking for main in -lz
configure:3064: gcc -o conftest -g -O2 conftest.c -lz -lxml2 -lrt -lpopt -lm -lfreetype -lfontconfig -lcairo >&5
configure:3070: $? = 0
configure:3088: result: yes
configure:3208: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by FULL-PACKAGE-NAME config.status VERSION, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on sfl-laptop34
config.status:588: creating Makefile
config.status:574: error: cannot find input file: config.h.in
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_lib_cairo_main=yes
ac_cv_lib_fontconfig_main=yes
ac_cv_lib_freetype_main=yes
ac_cv_lib_m_main=yes
ac_cv_lib_popt_main=yes
ac_cv_lib_rt_main=yes
ac_cv_lib_xml2_main=yes
ac_cv_lib_z_main=yes
ac_cv_objext=o
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
CC='gcc'
CFLAGS='-g -O2'
CPPFLAGS=''
DEFS='-DHAVE_CONFIG_H'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
LDFLAGS=''
LIBOBJS=''
LIBS='-lz -lxml2 -lrt -lpopt -lm -lfreetype -lfontconfig -lcairo '
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
PACKAGE_NAME='FULL-PACKAGE-NAME'
PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
PACKAGE_TARNAME='full-package-name'
PACKAGE_VERSION='VERSION'
PATH_SEPARATOR=':'
SHELL='/bin/bash'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "FULL-PACKAGE-NAME"
#define PACKAGE_TARNAME "full-package-name"
#define PACKAGE_VERSION "VERSION"
#define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
#define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
#define HAVE_LIBCAIRO 1
#define HAVE_LIBFONTCONFIG 1
#define HAVE_LIBFREETYPE 1
#define HAVE_LIBM 1
#define HAVE_LIBPOPT 1
#define HAVE_LIBRT 1
#define HAVE_LIBXML2 1
#define HAVE_LIBZ 1
configure: exit 1
This diff is collapsed.
This diff is collapsed.
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
AC_CONFIG_SRCDIR([eds.c])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lcairo':
AC_CHECK_LIB([cairo], [main])
# FIXME: Replace `main' with a function in `-lfontconfig':
AC_CHECK_LIB([fontconfig], [main])
# FIXME: Replace `main' with a function in `-lfreetype':
AC_CHECK_LIB([freetype], [main])
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [main])
# FIXME: Replace `main' with a function in `-lpopt':
AC_CHECK_LIB([popt], [main])
# FIXME: Replace `main' with a function in `-lrt':
AC_CHECK_LIB([rt], [main])
# FIXME: Replace `main' with a function in `-lxml2':
AC_CHECK_LIB([xml2], [main])
# FIXME: Replace `main' with a function in `-lz':
AC_CHECK_LIB([z], [main])
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
......@@ -2,22 +2,22 @@
* Copyright (C) 2007 Savoir-Faire Linux inc.
* Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
* Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
*
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <config.h>
#include <actions.h>
#include <calltab.h>
......@@ -57,7 +57,7 @@ on_delete (GtkWidget * widget UNUSED, gpointer data UNUSED)
}
/** Ask the user if he wants to hangup current calls */
gboolean
gboolean
main_window_ask_quit(){
guint count = call_list_get_size(current_calls);
GtkWidget * dialog;
......@@ -72,7 +72,7 @@ main_window_ask_quit(){
{
question = _("There are calls in progress.");
}
dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW(window) ,
GTK_DIALOG_MODAL,
GTK_MESSAGE_QUESTION,
......@@ -81,12 +81,12 @@ main_window_ask_quit(){
question,
_("Do you still want to quit?") );
response = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
if(response == GTK_RESPONSE_YES)
{
{
return TRUE;
}
else if(response == GTK_RESPONSE_NO)
......@@ -105,7 +105,7 @@ create_main_window ()
gtk_container_set_border_width (GTK_CONTAINER (window), 0);
gtk_window_set_title (GTK_WINDOW (window), PACKAGE);
gtk_window_set_default_size (GTK_WINDOW (window), 258, 320);
gtk_window_set_default_icon_from_file (ICONS_DIR "/sflphone.png",
gtk_window_set_default_icon_from_file (ICONS_DIR "/sflphone.png",
NULL);
gtk_window_set_position( GTK_WINDOW( window ) , GTK_WIN_POS_MOUSE);
......@@ -123,26 +123,27 @@ create_main_window ()
vbox = gtk_vbox_new ( FALSE /*homogeneous*/, 0 /*spacing*/);
subvbox = gtk_vbox_new ( FALSE /*homogeneous*/, 5 /*spacing*/);
gtk_container_set_border_width (GTK_CONTAINER(subvbox), 5);
widget = create_menus();
gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
widget = create_toolbar();
gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
gtk_box_pack_start (GTK_BOX (vbox), current_calls->tree, TRUE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
gtk_box_pack_start (GTK_BOX (vbox), history->tree, TRUE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
gtk_box_pack_start (GTK_BOX (vbox), contacts->tree, TRUE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
gtk_box_pack_start (GTK_BOX (vbox), subvbox, FALSE /*expand*/, FALSE /*fill*/, 0 /*padding*/);
if( SHOW_SEARCHBAR ){
filterEntry = create_filter_entry();
gtk_box_pack_start (GTK_BOX (subvbox), filterEntry, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);