After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701399 - improvements to gnome-bluetooth
improvements to gnome-bluetooth
Status: RESOLVED FIXED
Product: gnome-bluetooth
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-bluetooth-general-maint@gnome.bugs
gnome-bluetooth-general-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2013-06-01 00:47 UTC by Gustavo Padovan
Modified: 2013-06-18 19:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sendto: update status on transfer completed (1.34 KB, patch)
2013-06-01 00:48 UTC, Gustavo Padovan
none Details | Review
sendto: update status on transfer completed (1.05 KB, patch)
2013-06-01 00:49 UTC, Gustavo Padovan
needs-work Details | Review
sendto: remove Sending files label (1.57 KB, patch)
2013-06-01 00:50 UTC, Gustavo Padovan
committed Details | Review
wizard: Hide dialog if the selected device changes (823 bytes, patch)
2013-06-01 00:50 UTC, Gustavo Padovan
committed Details | Review
client: remove unused GError (1.14 KB, patch)
2013-06-01 00:54 UTC, Gustavo Padovan
accepted-commit_now Details | Review
wizard: make adapter visible while running the wizard (990 bytes, patch)
2013-06-01 00:55 UTC, Gustavo Padovan
needs-work Details | Review
client: do not call set discovering if value is the same (1.36 KB, patch)
2013-06-01 00:55 UTC, Gustavo Padovan
rejected Details | Review
lib: remove unused GError (1.13 KB, patch)
2013-06-02 22:01 UTC, Gustavo Padovan
committed Details | Review
killswitch: reuse kill state we already got (877 bytes, patch)
2013-06-11 16:31 UTC, Gustavo Padovan
rejected Details | Review
lib: power the adapter when un-killing adapter (3.73 KB, patch)
2013-06-11 16:31 UTC, Gustavo Padovan
needs-work Details | Review
lib: only flag the first adapter a default adapter (945 bytes, patch)
2013-06-11 16:32 UTC, Gustavo Padovan
reviewed Details | Review
lib: improve default_adapter_changed() (2.53 KB, patch)
2013-06-11 16:32 UTC, Gustavo Padovan
needs-work Details | Review
lib: replaces default adapter if the first is removed (3.00 KB, patch)
2013-06-11 16:33 UTC, Gustavo Padovan
needs-work Details | Review
lib: add bluetooth_client_get_connectable() (2.59 KB, patch)
2013-06-11 17:31 UTC, Gustavo Padovan
committed Details | Review
ib: add macros for Bluetooth Profiles UUIDs (1.60 KB, patch)
2013-06-13 15:23 UTC, Gustavo Padovan
needs-work Details | Review
lib: Replace uuid number by macros in uuid16_to_string() (2.47 KB, patch)
2013-06-13 15:23 UTC, Gustavo Padovan
committed Details | Review
lib: power the adapter when un-killing adapter (3.90 KB, patch)
2013-06-13 15:24 UTC, Gustavo Padovan
needs-work Details | Review
lib: make default adapter work properly again (5.62 KB, patch)
2013-06-13 15:25 UTC, Gustavo Padovan
needs-work Details | Review
lib: do not call set discovering if value is the same (1.40 KB, patch)
2013-06-13 15:28 UTC, Gustavo Padovan
committed Details | Review
sendto: update status on transfer completed (1.09 KB, patch)
2013-06-13 16:25 UTC, Gustavo Padovan
committed Details | Review
sendto: remove unused error handling (1.46 KB, patch)
2013-06-13 16:26 UTC, Gustavo Padovan
rejected Details | Review
sendto: fix check for current_transfer proxy (764 bytes, patch)
2013-06-13 16:26 UTC, Gustavo Padovan
committed Details | Review
lib: make default adapter work properly again (6.17 KB, patch)
2013-06-13 16:46 UTC, Gustavo Padovan
none Details | Review
lib: power the adapter when un-killing adapter (4.12 KB, patch)
2013-06-13 17:36 UTC, Gustavo Padovan
needs-work Details | Review
lib: make default adapter work properly again (6.17 KB, patch)
2013-06-13 17:36 UTC, Gustavo Padovan
committed Details | Review
lib: Remove pointless assignment (685 bytes, patch)
2013-06-13 17:37 UTC, Gustavo Padovan
committed Details | Review
wizard: remove duplicated get device name (795 bytes, patch)
2013-06-13 18:38 UTC, Gustavo Padovan
committed Details | Review
wizard: get target_name from Device proxy (2.56 KB, patch)
2013-06-13 18:38 UTC, Gustavo Padovan
needs-work Details | Review
wizard: get target_name from Device proxy (2.57 KB, patch)
2013-06-14 11:14 UTC, Gustavo Padovan
none Details | Review
wizard: get target_name from Device proxy (2.26 KB, patch)
2013-06-14 11:34 UTC, Bastien Nocera
committed Details | Review
lib: add macros for Bluetooth Profiles UUIDs (1.65 KB, patch)
2013-06-14 14:19 UTC, Gustavo Padovan
needs-work Details | Review
lib: add macros for Bluetooth Profiles UUIDs (1.91 KB, patch)
2013-06-14 16:44 UTC, Gustavo Padovan
committed Details | Review
lib: store Properties proxy in GtkTree too (6.37 KB, patch)
2013-06-14 16:45 UTC, Gustavo Padovan
committed Details | Review
lib: power the adapter when un-killing adapter (4.21 KB, patch)
2013-06-14 16:46 UTC, Gustavo Padovan
committed Details | Review

Description Gustavo Padovan 2013-06-01 00:47:27 UTC
A few patches to improve gnome-bluetooth.
Comment 1 Gustavo Padovan 2013-06-01 00:48:16 UTC
Created attachment 245788 [details] [review]
sendto: update status on transfer completed

    When all transfers have been completed, show a label
    saying so.
Comment 2 Gustavo Padovan 2013-06-01 00:49:53 UTC
Created attachment 245789 [details] [review]
sendto: update status on transfer completed

    When all transfers have been completed, show a label
    saying so.
Comment 3 Gustavo Padovan 2013-06-01 00:50:20 UTC
Created attachment 245790 [details] [review]
    sendto: remove Sending files label

    We can change the window title to say "Bluetooth File Transfer" and
    the remove the label "Sending files via Bluetooth".
    
    We can get a smaller window size with this change.
Comment 4 Gustavo Padovan 2013-06-01 00:50:46 UTC
Created attachment 245791 [details] [review]
    wizard: Hide dialog if the selected device changes

    If the device the user is trying to pair disappears, we should hide its
    PIN dialog, otherwise a PIN options dialog from another device will appear.
Comment 5 Gustavo Padovan 2013-06-01 00:54:39 UTC
Created attachment 245792 [details] [review]
client: remove unused GError
Comment 6 Gustavo Padovan 2013-06-01 00:55:23 UTC
Created attachment 245794 [details] [review]
wizard: make adapter visible while running the wizard
Comment 7 Gustavo Padovan 2013-06-01 00:55:53 UTC
Created attachment 245796 [details] [review]
client: do not call set discovering if value is the same

    We now check if the discovering value we get is equal to the current one.
    Before this check the code was calling org.bluez.Adapter1.StopDiscovery()
    with Discovering already set to False
Comment 8 Bastien Nocera 2013-06-02 16:16:18 UTC
Review of attachment 245792 [details] [review]:

Looks good, but the prefix is "lib: " not "client: "
Comment 9 Bastien Nocera 2013-06-02 16:18:58 UTC
Review of attachment 245794 [details] [review]:

This isn't the way I'd like to have this done.
The wizard will force the adapter visibility even if it was already set to "on", and if it was turned off and the wizard crashed, it wouldn't be turned to off.

The best way to do this would be for BlueZ to have a "SetPoweredForClient()" and automatically turn off visible if the client crashed/went away.
Comment 10 Bastien Nocera 2013-06-02 16:19:44 UTC
Review of attachment 245796 [details] [review]:

See previous patch, I don't think it should be implemented that way.
Comment 11 Bastien Nocera 2013-06-02 16:20:41 UTC
Review of attachment 245791 [details] [review]:

Why is this bad? The options should be reset if you changed the selected device.
Comment 12 Bastien Nocera 2013-06-02 16:21:29 UTC
Review of attachment 245789 [details] [review]:

::: sendto/main.c
@@ +680,3 @@
+		gtk_progress_bar_set_text(GTK_PROGRESS_BAR(progress), "");
+
+		if (file_count == 1)

Use ngettext instead.
Comment 13 Bastien Nocera 2013-06-02 16:22:18 UTC
Review of attachment 245790 [details] [review]:

Looks good.
Comment 14 Gustavo Padovan 2013-06-02 22:01:16 UTC
Created attachment 245884 [details] [review]
lib: remove unused GError
Comment 15 Gustavo Padovan 2013-06-02 22:05:07 UTC
(In reply to comment #9)
> Review of attachment 245794 [details] [review]:
> 
> This isn't the way I'd like to have this done.
> The wizard will force the adapter visibility even if it was already set to
> "on", and if it was turned off and the wizard crashed, it wouldn't be turned to
> off.
> 
> The best way to do this would be for BlueZ to have a "SetPoweredForClient()"
> and automatically turn off visible if the client crashed/went away.

I agree that BlueZ should track this as it does with Discovering. Discovering stops if all clients that requested it goes away. I thought about this while implementing this. But even if BlueZ supports this it doesn't prevent us from calling turn Discoverable off in this patch.

I should work on patches in BlueZ to implement this.
Comment 16 Gustavo Padovan 2013-06-02 22:07:31 UTC
(In reply to comment #10)
> Review of attachment 245796 [details] [review]:
> 
> See previous patch, I don't think it should be implemented that way.

No sure what you want here, this is a bug fix, we were calling StopDiscovery() when there was no Discovering ongoing and we need to call this in the wizard. After we select the device we want to pair and start its setup.
Comment 17 Gustavo Padovan 2013-06-02 22:10:49 UTC
(In reply to comment #11)
> Review of attachment 245791 [details] [review]:
> 
> Why is this bad? The options should be reset if you changed the selected
> device.

If for some reason the selected devices disappears an new device is selected automatically and if we have the PIN option dialog open the dialog will refer to a device that we may not want to pair.

Other than that if we find only one device and it disappears the dialog will still appear if that device disappear and no other device is selected, address == NULL in select_device_changed()
Comment 18 Emilio Pozuelo Monfort 2013-06-06 11:00:52 UTC
Comment on attachment 245884 [details] [review]
lib: remove unused GError

(In reply to comment #8)
> Review of attachment 245792 [details] [review]:
> 
> Looks good, but the prefix is "lib: " not "client: "

Pushed with that fixed.
Comment 19 Gustavo Padovan 2013-06-11 16:31:06 UTC
Created attachment 246546 [details] [review]
killswitch: reuse kill state we already got

    We don't need to call bluetooth_killswitch_get_state again since new_state
    is storing this value for us.
Comment 20 Gustavo Padovan 2013-06-11 16:31:48 UTC
Created attachment 246548 [details] [review]
lib: power the adapter when un-killing adapter

    Since bluetooth doesn't remember powered state anymore we should
    Power the device ourselves when we rfkill-unblock the device.
    
    this moves some notification around, e.g., we only notify
    "default-adapter", "default-adapter-powered" and
    "default-adapter-discoverable" when the adapter is actually powered.
Comment 21 Gustavo Padovan 2013-06-11 16:32:20 UTC
Created attachment 246549 [details] [review]
lib: only flag the first adapter a default adapter

    BlueZ has removed the DefaultAdapter concept so now we use the first
    adapter plugged as the default adapter.
Comment 22 Gustavo Padovan 2013-06-11 16:32:53 UTC
Created attachment 246550 [details] [review]
lib: improve default_adapter_changed()

    we don't the iter on the tree to get the adapter, get_iter_from_path()
    just do it for us.
Comment 23 Gustavo Padovan 2013-06-11 16:33:17 UTC
Created attachment 246551 [details] [review]
lib: replaces default adapter if the first is removed

    If the default adapter is removed we need to look for a another one to
    replace as default adapter.
Comment 24 Gustavo Padovan 2013-06-11 17:31:34 UTC
Created attachment 246552 [details] [review]
lib: add bluetooth_client_get_connectable()

    tells if a device can be connected directly by the user or if only other
    components can trigger connections. The implementation for BlueZ 4 used to
    have the same information but based on D-Bus interface available. Now we
    just rely on the uuids to get the same behavior.
Comment 25 Bastien Nocera 2013-06-12 15:42:48 UTC
Review of attachment 246546 [details] [review]:

_get_state() will compute the state for all the killswitches of the same class. So a killswitch could change state while another (from the hardware platform for example) might override it.
Comment 26 Bastien Nocera 2013-06-12 15:47:42 UTC
Review of attachment 246548 [details] [review]:

::: lib/bluetooth-client.c
@@ +408,3 @@
+					NULL, &error);
+	if (ret == FALSE) {
+

That linefeed isn't needed.

@@ +425,3 @@
 	BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
 	GtkTreeIter iter;
+	gboolean cont, powered = FALSE, found = FALSE;

separate lines when you assign values please.

@@ +465,3 @@
+		g_object_notify (G_OBJECT (client), "default-adapter-discoverable");
+		return;
+	}

else {
 set_powered()
}
?

And add a comment that in the else case the notifications will be sent when the power status has changed.
Comment 27 Bastien Nocera 2013-06-12 15:48:30 UTC
Review of attachment 246549 [details] [review]:

Fine.
Comment 28 Bastien Nocera 2013-06-12 15:49:35 UTC
Review of attachment 246549 [details] [review]:

Hmm, how does it work when I plug in 2 adapters, and remove the first one I plugged in?
Looks to me like the default adapter would be changed.
Comment 29 Bastien Nocera 2013-06-12 15:51:33 UTC
Review of attachment 246550 [details] [review]:

::: lib/bluetooth-client.c
@@ +433,2 @@
+	tree_path = gtk_tree_model_get_path (GTK_TREE_MODEL (priv->store), &iter);
+	priv->default_adapter = gtk_tree_row_reference_new (GTK_TREE_MODEL (priv->store), tree_path);

When do you free priv->default_adapter?
Comment 30 Bastien Nocera 2013-06-12 15:52:39 UTC
Review of attachment 246551 [details] [review]:

This will need to be merged into an earlier patch, I don't want to end up with a commit that regresses.
Comment 31 Bastien Nocera 2013-06-12 15:53:12 UTC
Review of attachment 246552 [details] [review]:

Looks fine.
Comment 32 Gustavo Padovan 2013-06-13 13:12:01 UTC
Review of attachment 246548 [details] [review]:

::: lib/bluetooth-client.c
@@ +465,3 @@
+		g_object_notify (G_OBJECT (client), "default-adapter-discoverable");
+		return;
+	}

The if returns, which means we don't need an else here. I'll add the comment.
Comment 33 Gustavo Padovan 2013-06-13 13:12:02 UTC
Review of attachment 246548 [details] [review]:

::: lib/bluetooth-client.c
@@ +465,3 @@
+		g_object_notify (G_OBJECT (client), "default-adapter-discoverable");
+		return;
+	}

The if returns, which means we don't need an else here. I'll add the comment.
Comment 34 Gustavo Padovan 2013-06-13 13:12:03 UTC
Review of attachment 246548 [details] [review]:

::: lib/bluetooth-client.c
@@ +465,3 @@
+		g_object_notify (G_OBJECT (client), "default-adapter-discoverable");
+		return;
+	}

The if returns, which means we don't need an else here. I'll add the comment.
Comment 35 Bastien Nocera 2013-06-13 13:15:43 UTC
Comment on attachment 246552 [details] [review]
lib: add bluetooth_client_get_connectable()

Attachment 246552 [details] pushed as e0a3511 - lib: add bluetooth_client_get_connectable()
Comment 36 Bastien Nocera 2013-06-13 14:57:44 UTC
Review of attachment 245791 [details] [review]:

It's needed when BlueZ removes the device from the list. Blessed be the day we remove that dialogue...
Comment 37 Gustavo Padovan 2013-06-13 15:11:23 UTC
(In reply to comment #29)
> Review of attachment 246550 [details] [review]:
> 
> ::: lib/bluetooth-client.c
> @@ +433,2 @@
> +    tree_path = gtk_tree_model_get_path (GTK_TREE_MODEL (priv->store), &iter);
> +    priv->default_adapter = gtk_tree_row_reference_new (GTK_TREE_MODEL
> (priv->store), tree_path);
> 
> When do you free priv->default_adapter?

It is freed when the adapter is removed, or everything is vanished.
Comment 38 Gustavo Padovan 2013-06-13 15:23:10 UTC
Created attachment 246734 [details] [review]
ib: add macros for Bluetooth Profiles UUIDs
Comment 39 Gustavo Padovan 2013-06-13 15:23:59 UTC
Created attachment 246735 [details] [review]
lib: Replace uuid number by macros in uuid16_to_string()
Comment 40 Gustavo Padovan 2013-06-13 15:24:31 UTC
Created attachment 246736 [details] [review]
lib: power the adapter when un-killing adapter

    Since bluetooth doesn't remember powered state anymore we should
    Power the device ourselves when we rfkill-unblock the device.
    
    This moves some notification around, e.g., we only notify
    "default-adapter", "default-adapter-powered" and
    "default-adapter-discoverable" when the adapter is actually powered.
Comment 41 Gustavo Padovan 2013-06-13 15:25:10 UTC
Created attachment 246737 [details] [review]
lib: make default adapter work properly again

    BlueZ has removed the DefaultAdapter concept so now we use the first
    adapter plugged as the default adapter.
    
    In case the default adapter is removed we iter to find a new adapter
    to replace as default adapter, in case it exists we call
    default_adapter_changed() to setup it as the new default.
    
    We were able to get rid of some loops in the code in favor to a better
    implementation using get_iter_from_path() to get the desired iter.
Comment 42 Bastien Nocera 2013-06-13 15:28:46 UTC
Review of attachment 246737 [details] [review]:

::: lib/bluetooth-client.c
@@ +459,2 @@
+	tree_path = gtk_tree_model_get_path (GTK_TREE_MODEL (priv->store), &iter);
+	priv->default_adapter = gtk_tree_row_reference_new (GTK_TREE_MODEL (priv->store), tree_path);

You're assuming that priv->default_adapter will already be NULL. In this case, add a g_assert (priv->default_adapter); before this.

@@ +626,1 @@
+	gtk_tree_model_get(GTK_TREE_MODEL(priv->store), &iter,

space before bracket.

@@ +630,3 @@
+		return;
+
+	gtk_tree_row_reference_free (priv->default_adapter);

Use g_clear_pointer (); for this.
Comment 43 Gustavo Padovan 2013-06-13 15:28:55 UTC
Created attachment 246738 [details] [review]
lib: do not call set discovering if value is the same

    We now check if the discovering value we get is equal to the current one.
    Before this check the code was calling org.bluez.Adapter1.StopDiscovery()
    with Discovering already set to False which leads bluetoothd to return a
    error to us.
Comment 44 Bastien Nocera 2013-06-13 15:29:19 UTC
Review of attachment 246734 [details] [review]:

::: lib/bluetooth-utils.h
@@ +31,3 @@
 G_BEGIN_DECLS
 
+#define BLUETOOTH_UUID_SPP		0x1101

Where's the canonical location for this list?
Comment 45 Bastien Nocera 2013-06-13 15:29:51 UTC
Review of attachment 246735 [details] [review]:

Looks good.
Comment 46 Bastien Nocera 2013-06-13 15:31:01 UTC
Review of attachment 246736 [details] [review]:

The rest looks fine.

::: lib/bluetooth-client.c
@@ +422,3 @@
+	g_return_val_if_fail (BLUETOOTH_IS_CLIENT (client), FALSE);
+
+	properties = properties_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,

I'd rather not add any new sync calls, we've got enough of them already.
Comment 47 Bastien Nocera 2013-06-13 15:31:46 UTC
Review of attachment 246738 [details] [review]:

Fine.
Comment 48 Gustavo Padovan 2013-06-13 16:25:53 UTC
Created attachment 246741 [details] [review]
sendto: update status on transfer completed

    When all transfers have been completed, show a label
    saying so.
Comment 49 Gustavo Padovan 2013-06-13 16:26:13 UTC
Created attachment 246742 [details] [review]
sendto: remove unused error handling
Comment 50 Gustavo Padovan 2013-06-13 16:26:37 UTC
Created attachment 246744 [details] [review]
sendto: fix check for current_transfer proxy
Comment 51 Gustavo Padovan 2013-06-13 16:27:37 UTC
(In reply to comment #44)
> Review of attachment 246734 [details] [review]:
> 
> ::: lib/bluetooth-utils.h
> @@ +31,3 @@
>  G_BEGIN_DECLS
> 
> +#define BLUETOOTH_UUID_SPP        0x1101
> 
> Where's the canonical location for this list?

The Bluetooth.org website.
Comment 52 Gustavo Padovan 2013-06-13 16:46:39 UTC
Created attachment 246745 [details] [review]
lib: make default adapter work properly again

    BlueZ has removed the DefaultAdapter concept so now we use the first
    adapter plugged as the default adapter.
    
    In case the default adapter is removed we iter to find a new adapter
    to replace as default adapter, in case it exists we call
    default_adapter_changed() to setup it as the new default.
    
    We were able to get rid of some loops in the code in favor to a better
    implementation using get_iter_from_path() to get the desired iter.
Comment 53 Gustavo Padovan 2013-06-13 17:36:05 UTC
Created attachment 246748 [details] [review]
lib: power the adapter when un-killing adapter

    Since bluetooth doesn't remember powered state anymore we should
    Power the device ourselves when we rfkill-unblock the device.
    
    This moves some notification around, e.g., we only notify
    "default-adapter", "default-adapter-powered" and
    "default-adapter-discoverable" when the adapter is actually powered.
Comment 54 Gustavo Padovan 2013-06-13 17:36:42 UTC
Created attachment 246749 [details] [review]
lib: make default adapter work properly again

    BlueZ has removed the DefaultAdapter concept so now we use the first
    adapter plugged as the default adapter.
    
    In case the default adapter is removed we iter to find a new adapter
    to replace as default adapter, in case it exists we call
    default_adapter_changed() to setup it as the new default.
    
    We were able to get rid of some loops in the code in favor to a better
    implementation using get_iter_from_path() to get the desired iter.
Comment 55 Gustavo Padovan 2013-06-13 17:37:09 UTC
Created attachment 246750 [details] [review]
lib: Remove pointless assignment
Comment 56 Gustavo Padovan 2013-06-13 18:38:29 UTC
Created attachment 246763 [details] [review]
wizard: remove duplicated get device name
Comment 57 Gustavo Padovan 2013-06-13 18:38:56 UTC
Created attachment 246764 [details] [review]
wizard: get target_name from Device proxy

    If the we wizard is still searching for devices and a incoming pairing
    request arrives from another device we should get its name to show in the
    many messages. This works nicely for both incoming and outcoming pairing
    requests.
Comment 58 Bastien Nocera 2013-06-14 09:16:57 UTC
Review of attachment 246741 [details] [review]:

::: sendto/main.c
@@ +675,3 @@
+						      "%u transfers complete",
+						      file_count), file_count);
+		gtk_label_set_text (GTK_LABEL (label_status), complete);

g_free (complete);
Comment 59 Bastien Nocera 2013-06-14 09:19:54 UTC
Review of attachment 246742 [details] [review]:

Pochu said that this code would be reinstated, see bug701280 .
Comment 60 Bastien Nocera 2013-06-14 09:20:38 UTC
Review of attachment 246744 [details] [review]:

Yes.
Comment 61 Bastien Nocera 2013-06-14 09:21:42 UTC
Review of attachment 246748 [details] [review]:

::: lib/bluetooth-client.c
@@ +436,3 @@
+	g_return_val_if_fail (BLUETOOTH_IS_CLIENT (client), FALSE);
+
+	properties = properties_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,

This is still sync though.
Comment 62 Bastien Nocera 2013-06-14 09:22:19 UTC
Review of attachment 246749 [details] [review]:

Looks good.
Comment 63 Bastien Nocera 2013-06-14 09:22:56 UTC
Review of attachment 246750 [details] [review]:

Indeed.
Comment 64 Bastien Nocera 2013-06-14 09:25:17 UTC
Review of attachment 246763 [details] [review]:

Fine.
Comment 65 Bastien Nocera 2013-06-14 09:26:28 UTC
Review of attachment 246764 [details] [review]:

::: wizard/main.c
@@ +197,3 @@
 	gtk_assistant_set_current_page (window_assistant, PAGE_SETUP);
 
+	g_free(target_name);

space. Everywhere.
Comment 66 Bastien Nocera 2013-06-14 09:30:32 UTC
Attachment 246738 [details] pushed as d10e9e4 - lib: do not call set discovering if value is the same
Attachment 246741 [details] pushed as d4b0252 - sendto: update status on transfer completed (with the leak fix)
Attachment 246744 [details] pushed as e522ab4 - sendto: fix check for current_transfer proxy
Attachment 246750 [details] pushed as 502240a - lib: Remove pointless assignment
Attachment 246763 [details] pushed as d4f7590 - wizard: remove duplicated get device name
Comment 67 Gustavo Padovan 2013-06-14 11:14:24 UTC
Created attachment 246795 [details] [review]
wizard: get target_name from Device proxy

    If the we wizard is still searching for devices and a incoming pairing
    request arrives from another device we should get its name to show in the
    many messages. This works nicely for both incoming and outcoming pairing
    requests.
Comment 68 Bastien Nocera 2013-06-14 11:34:40 UTC
Created attachment 246797 [details] [review]
wizard: get target_name from Device proxy

If the we wizard is still searching for devices and a incoming pairing
request arrives from another device we should get its name to show in the
many messages. This works nicely for both incoming and outcoming pairing
requests.
Comment 69 Bastien Nocera 2013-06-14 11:36:11 UTC
Comment on attachment 246797 [details] [review]
wizard: get target_name from Device proxy

Attachment 246797 [details] pushed as 5698fb5 - wizard: get target_name from Device proxy
Comment 70 Gustavo Padovan 2013-06-14 14:19:48 UTC
Created attachment 246813 [details] [review]
lib: add macros for Bluetooth Profiles UUIDs

This list comes from the Bluetooth SIG official website.
Comment 71 Bastien Nocera 2013-06-14 16:01:04 UTC
Review of attachment 246813 [details] [review]:

Could you please put a link in the code as a comment?
Comment 72 Gustavo Padovan 2013-06-14 16:44:24 UTC
Created attachment 246826 [details] [review]
lib: add macros for Bluetooth Profiles UUIDs
Comment 73 Bastien Nocera 2013-06-14 16:45:14 UTC
Review of attachment 246826 [details] [review]:

Looks good.
Comment 74 Gustavo Padovan 2013-06-14 16:45:14 UTC
Created attachment 246827 [details] [review]
lib: store Properties proxy in GtkTree too

Since it is used more than once in the code we store it to easier access.
Comment 75 Gustavo Padovan 2013-06-14 16:46:04 UTC
Created attachment 246828 [details] [review]
lib: power the adapter when un-killing adapter

    Since bluetooth doesn't remember powered state anymore we should
    Power the device ourselves when we rfkill-unblock the device.
    
    This moves some notification around, e.g., we only notify
    "default-adapter", "default-adapter-powered" and
    "default-adapter-discoverable" when the adapter is actually powered.
Comment 76 Bastien Nocera 2013-06-14 16:51:15 UTC
Review of attachment 246827 [details] [review]:

That looks fine.
Comment 77 Bastien Nocera 2013-06-14 16:52:40 UTC
Review of attachment 246828 [details] [review]:

Looks good.
Comment 78 Bastien Nocera 2013-06-18 19:34:51 UTC
Attachment 246735 [details] pushed as f0c13cb - lib: Replace uuid number by macros in uuid16_to_string()