[gnome-bluetooth] Select the device when the chooser pops up
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Select the device when the chooser pops up
- Date: Mon, 23 Nov 2009 16:34:40 +0000 (UTC)
commit d82ad9293b99e6d5c738a6c027980ac8530cb8f7
Author: Bastien Nocera <hadess hadess net>
Date: Mon Nov 23 16:25:50 2009 +0000
Select the device when the chooser pops up
When popping the chooser from the chooser button, select
the device that's currently set up in the button.
lib/bluetooth-chooser-button.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-chooser-button.c b/lib/bluetooth-chooser-button.c
index d9f05c6..22a190b 100644
--- a/lib/bluetooth-chooser-button.c
+++ b/lib/bluetooth-chooser-button.c
@@ -210,6 +210,7 @@ bluetooth_chooser_button_clicked (GtkButton *widget)
g_signal_emit (G_OBJECT (button),
signals[CHOOSER_CREATED],
0, button->chooser);
+ g_object_set (G_OBJECT (button->chooser), "device-selected", button->bdaddr, NULL);
gtk_container_set_border_width (GTK_CONTAINER(button->chooser), 5);
gtk_widget_show (button->chooser);
gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (button->dialog))), button->chooser);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]