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

Merge branch 'pierre-luc' of git+ssh://repos-sflphone-git@sflphone.org/~/sflphone into pierre-luc

parents 12cc05b7 21667c4b
No related branches found
No related tags found
No related merge requests found
...@@ -64,8 +64,6 @@ static GtkTreeModel* history_create_filter (GtkTreeModel* child) ...@@ -64,8 +64,6 @@ static GtkTreeModel* history_create_filter (GtkTreeModel* child)
} }
static gboolean history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpointer data UNUSED) static gboolean history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpointer data UNUSED)
{
if (SHOW_SEARCHBAR)
{ {
GValue val, obj; GValue val, obj;
...@@ -110,5 +108,3 @@ static gboolean history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpoi ...@@ -110,5 +108,3 @@ static gboolean history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpoi
return TRUE; return TRUE;
} }
return TRUE;
}
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include <actions.h> #include <actions.h>
#include <string.h> #include <string.h>
#define DEFAULT_DBUS_TIMEOUT 30000
DBusGConnection * connection; DBusGConnection * connection;
DBusGProxy * callManagerProxy; DBusGProxy * callManagerProxy;
DBusGProxy * configurationManagerProxy; DBusGProxy * configurationManagerProxy;
...@@ -389,6 +391,12 @@ dbus_connect () ...@@ -389,6 +391,12 @@ dbus_connect ()
"errorAlert", G_TYPE_INT , G_TYPE_INVALID); "errorAlert", G_TYPE_INT , G_TYPE_INVALID);
dbus_g_proxy_connect_signal (configurationManagerProxy, dbus_g_proxy_connect_signal (configurationManagerProxy,
"errorAlert", G_CALLBACK(error_alert), NULL, NULL); "errorAlert", G_CALLBACK(error_alert), NULL, NULL);
/* Defines a default timeout for the proxies */
dbus_g_proxy_set_default_timeout(callManagerProxy, DEFAULT_DBUS_TIMEOUT);
dbus_g_proxy_set_default_timeout(instanceProxy, DEFAULT_DBUS_TIMEOUT);
dbus_g_proxy_set_default_timeout(configurationManagerProxy, DEFAULT_DBUS_TIMEOUT);
return TRUE; return TRUE;
} }
......
...@@ -197,20 +197,8 @@ create_main_window () ...@@ -197,20 +197,8 @@ create_main_window ()
gtk_box_pack_start (GTK_BOX (vbox), history->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), contacts->tree, TRUE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
// gtk_box_pack_start (GTK_BOX (vbox), current_calls->searchbar, TRUE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
// gtk_box_pack_start (GTK_BOX (vbox), history->searchbar, TRUE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
// gtk_box_pack_start (GTK_BOX (vbox), contacts ->searchbar, TRUE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
gtk_box_pack_start (GTK_BOX (vbox), subvbox, FALSE /*expand*/, FALSE /*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*/);
// gtk_widget_show_all ( filterEntry );
// }
if( SHOW_VOLUME ){ if( SHOW_VOLUME ){
speaker_control = create_slider("speaker"); speaker_control = create_slider("speaker");
gtk_box_pack_end (GTK_BOX (subvbox), speaker_control, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/); gtk_box_pack_end (GTK_BOX (subvbox), speaker_control, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
...@@ -350,22 +338,6 @@ main_window_volume_controls( gboolean *state ){ ...@@ -350,22 +338,6 @@ main_window_volume_controls( gboolean *state ){
} }
} }
void
main_window_searchbar( gboolean *state UNUSED){
if( !SHOW_SEARCHBAR )
{
// filterEntry = create_filter_entry();
// gtk_box_pack_start (GTK_BOX (subvbox), filterEntry, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
// gtk_widget_show_all (filterEntry);
// *state = TRUE;
}
else
{
// gtk_container_remove( GTK_CONTAINER(subvbox) , filterEntry );
// *state = FALSE;
}
}
void void
statusbar_push_message(const gchar * message, guint id) statusbar_push_message(const gchar * message, guint id)
{ {
......
...@@ -90,8 +90,6 @@ void statusbar_push_message( const gchar* message , guint id ); ...@@ -90,8 +90,6 @@ void statusbar_push_message( const gchar* message , guint id );
*/ */
void statusbar_pop_message( guint id ); void statusbar_pop_message( guint id );
void main_window_searchbar( gboolean *state );
//static gboolean //static gboolean
//on_key_released (GtkWidget *widget, GdkEventKey *event, //on_key_released (GtkWidget *widget, GdkEventKey *event,
// gpointer user_data); // gpointer user_data);
......
...@@ -614,16 +614,7 @@ view_volume_controls (GtkImageMenuItem *imagemenuitem UNUSED, ...@@ -614,16 +614,7 @@ view_volume_controls (GtkImageMenuItem *imagemenuitem UNUSED,
dbus_set_volume_controls( state ); dbus_set_volume_controls( state );
} }
/*
static void
view_searchbar (GtkImageMenuItem *imagemenuitem UNUSED,
void* foo UNUSED)
{
gboolean state;
main_window_searchbar( &state );
dbus_set_searchbar( state );
}
*/
GtkWidget * GtkWidget *
create_view_menu() create_view_menu()
{ {
......
...@@ -77,8 +77,6 @@ log4c_category_t* log4c_sfl_gtk_category; ...@@ -77,8 +77,6 @@ log4c_category_t* log4c_sfl_gtk_category;
#define SHOW_DIALPAD ( dbus_get_dialpad() ) #define SHOW_DIALPAD ( dbus_get_dialpad() )
/** Show/Hide the volume controls */ /** Show/Hide the volume controls */
#define SHOW_VOLUME ( dbus_get_volume_controls() ) #define SHOW_VOLUME ( dbus_get_volume_controls() )
/** Show/Hide the dialpad */
#define SHOW_SEARCHBAR ( dbus_get_searchbar() )
/** Show/Hide the alsa configuration panel */ /** Show/Hide the alsa configuration panel */
#define SHOW_ALSA_CONF ( dbus_get_audio_manager() == ALSA ) #define SHOW_ALSA_CONF ( dbus_get_audio_manager() == ALSA )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment