[gnome-bluetooth] Emit both the signal and property notify when row changes
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-bluetooth] Emit both the signal and property notify when row changes
- Date: Fri, 5 Jun 2009 09:07:52 -0400 (EDT)
commit 9fd1c3a70d0840cdd681dab8313a6846441e7fa7
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 5 09:53:51 2009 +0100
Emit both the signal and property notify when row changes
In the BluetoothChooser, we were only sending the property
notify when the row changed. We might as well send the
signal as well.
---
common/bluetooth-chooser.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/common/bluetooth-chooser.c b/common/bluetooth-chooser.c
index 8bb590f..9ae33ec 100644
--- a/common/bluetooth-chooser.c
+++ b/common/bluetooth-chooser.c
@@ -347,19 +347,18 @@ device_model_row_changed (GtkTreeModel *model,
{
BluetoothChooser *self = BLUETOOTH_CHOOSER (data);
BluetoothChooserPrivate *priv = BLUETOOTH_CHOOSER_GET_PRIVATE(self);
- char *name;
+ char *address;
/* Not the selection changing? */
if (gtk_tree_selection_path_is_selected (priv->selection, path) == FALSE)
return;
- gtk_tree_model_get (model, iter,
- BLUETOOTH_COLUMN_NAME, &name,
- -1);
- /* Maybe it's the name that changed */
g_object_notify (G_OBJECT (self), "device-selected");
-
- g_free (name);
+ address = bluetooth_chooser_get_selected_device (self);
+ g_signal_emit (G_OBJECT (self),
+ selection_table_signals[SELECTED_DEVICE_CHANGED],
+ 0, address);
+ g_free (address);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]