[gnome-bluetooth] lib: Add API to get the device column for chooser



commit 3fb77489b106f1aa998481f41f3720096a8927c6
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jun 27 11:33:22 2011 +0100

    lib: Add API to get the device column for chooser

 lib/bluetooth-chooser-private.h |    1 +
 lib/bluetooth-chooser.c         |   16 ++++++++++++++++
 lib/gnome-bluetooth.symbols     |    1 +
 3 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-chooser-private.h b/lib/bluetooth-chooser-private.h
index 69b47fa..7832f49 100644
--- a/lib/bluetooth-chooser-private.h
+++ b/lib/bluetooth-chooser-private.h
@@ -32,6 +32,7 @@
 G_BEGIN_DECLS
 
 GtkTreeModel *bluetooth_chooser_get_model (BluetoothChooser *self);
+GtkTreeViewColumn *bluetooth_chooser_get_device_column (BluetoothChooser *self);
 GtkTreeViewColumn *bluetooth_chooser_get_type_column (BluetoothChooser *self);
 GtkWidget *bluetooth_chooser_get_treeview (BluetoothChooser *self);
 GtkWidget *bluetooth_chooser_get_scrolled_window (BluetoothChooser *self);
diff --git a/lib/bluetooth-chooser.c b/lib/bluetooth-chooser.c
index aa1528e..233642b 100644
--- a/lib/bluetooth-chooser.c
+++ b/lib/bluetooth-chooser.c
@@ -452,6 +452,22 @@ bluetooth_chooser_get_model (BluetoothChooser *self)
 }
 
 /**
+ * bluetooth_chooser_get_device_column:
+ * @self: A #BluetoothChooser widget.
+ *
+ * Returns a #GtkTreeViewColumn object to the device column of the #BluetoothChooser.
+ *
+ * Return value: a #GtkTreeViewColumn object.
+ **/
+GtkTreeViewColumn *
+bluetooth_chooser_get_device_column (BluetoothChooser *self)
+{
+	BluetoothChooserPrivate *priv = BLUETOOTH_CHOOSER_GET_PRIVATE(self);
+
+	return gtk_tree_view_get_column (GTK_TREE_VIEW (priv->treeview), 0);
+}
+
+/**
  * bluetooth_chooser_get_type_column:
  * @self: A #BluetoothChooser widget.
  *
diff --git a/lib/gnome-bluetooth.symbols b/lib/gnome-bluetooth.symbols
index c26cdb9..a1034dc 100644
--- a/lib/gnome-bluetooth.symbols
+++ b/lib/gnome-bluetooth.symbols
@@ -8,6 +8,7 @@ bluetooth_chooser_get_selected_device_icon
 bluetooth_chooser_get_selected_device_type
 bluetooth_chooser_get_selected_device_is_connected
 bluetooth_chooser_get_model
+bluetooth_chooser_get_device_column
 bluetooth_chooser_get_type_column
 bluetooth_chooser_get_treeview
 bluetooth_chooser_get_scrolled_window



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