[gnome-bluetooth] settings: Update opened properties when a device changes



commit 4c6d1c486af2d567980bb233f8161122a261f20b
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Dec 7 15:56:24 2013 +0100

    settings: Update opened properties when a device changes
    
    Otherwise we'd need to close and reopen it to see updated information.

 lib/bluetooth-settings-widget.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index 17352e9..4f6e822 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -1488,6 +1488,10 @@ row_changed_cb (GtkTreeModel *tree_model,
                                      "name", name,
                                      "legacy-pairing", legacy_pairing,
                                      NULL);
+
+                       /* Update the properties if necessary */
+                       if (g_strcmp0 (priv->selected_object_path, object_path) == 0)
+                               update_properties (user_data, proxy);
                        break;
                }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]