Mercurial > audlegacy-plugins
changeset 2896:35773e919dba
removed unsed mutex - and a dupplicate function call
author | Paula Stanciu <paula.stanciu@gmail.com> |
---|---|
date | Wed, 13 Aug 2008 09:35:56 +0300 |
parents | 92fc55b8da15 |
children | 9c623f4ac901 |
files | src/bluetooth/agent.c src/bluetooth/bluetooth.c |
diffstat | 2 files changed, 9 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bluetooth/agent.c Wed Aug 13 01:59:25 2008 +0300 +++ b/src/bluetooth/agent.c Wed Aug 13 09:35:56 2008 +0300 @@ -700,7 +700,7 @@ static void bonding_created(DBusGProxy *object, const char *address, gpointer user_data) { - bonded_dev_mutex = g_mutex_new (); + const char *adapter = NULL, *name = NULL; gchar *device, *text; @@ -719,10 +719,8 @@ device = g_strdup_printf("%s (%s)", name, address); } else device = g_strdup(address); - - g_mutex_lock(bonded_dev_mutex); - bonded_dev = g_strdup_printf(address); - g_mutex_unlock(bonded_dev_mutex); + bonded_dev = g_strdup_printf(address); + text = g_strdup_printf(_("Created bonding with %s"), device); bonding_finish = 1; @@ -756,7 +754,7 @@ text = g_strdup_printf(_("Removed bonding with %s"), device); g_free(device); - printf("bonding removed"); + printf("bonding removed\n"); // show_notification(adapter ? adapter : _("Bluetooth device"), // text, NULL, 6000, NULL);
--- a/src/bluetooth/bluetooth.c Wed Aug 13 01:59:25 2008 +0300 +++ b/src/bluetooth/bluetooth.c Wed Aug 13 09:35:56 2008 +0300 @@ -156,19 +156,17 @@ dbus_g_object_register_marshaller(marshal_VOID__STRING_UINT_INT, G_TYPE_NONE, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_INT, G_TYPE_INVALID); run_agents(); - close_call(); - show_scan(1); - dbus_g_proxy_call(obj,"CreateBonding",NULL,G_TYPE_STRING,current_address,G_TYPE_INVALID,G_TYPE_INVALID); return NULL; } void connect_call(void) -{ +{ close_call(); + close_window(); + show_scan(1); + remove_bonding(); current_address = g_strdup(((DeviceData*)(selected_dev->data))->address); connect_th = g_thread_create((GThreadFunc)connect_call_th,NULL,TRUE,NULL) ; - close_call(); - close_window(); - show_scan(1); + }