![]() |
![]() |
![]() |
gnome-bluetooth Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
#define BLUETOOTH_GET_CHOOSER_CLASS (obj) BluetoothChooser; GtkWidget * bluetooth_chooser_new (const gchar *title); void bluetooth_chooser_set_title (BluetoothChooser *self, const char *title); gchar * bluetooth_chooser_get_selected_device (BluetoothChooser *self); gchar * bluetooth_chooser_get_selected_device_name (BluetoothChooser *self); gchar * bluetooth_chooser_get_selected_device_icon (BluetoothChooser *self); void bluetooth_chooser_start_discovery (BluetoothChooser *self);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----BluetoothChooser
BluetoothChooser implements GtkBuildable, AtkImplementorIface and GtkOrientable.
"device-category-filter" gint : Read / Write "device-selected" gchar* : Read "device-selected-icon" gchar* : Read "device-selected-is-connected" gboolean : Read "device-selected-name" gchar* : Read "device-selected-proxy" GObject* : Read "device-selected-type" guint : Read "device-type-filter" gint : Read / Write "show-connected" gboolean : Read / Write "show-device-category" gboolean : Read / Write "show-device-type" gboolean : Read / Write "show-pairing" gboolean : Read / Write "show-search" gboolean : Read / Write "title" gchar* : Write
GtkWidget * bluetooth_chooser_new (const gchar *title);
|
the widget header title |
Returns : |
A BluetoothChooser widget |
void bluetooth_chooser_set_title (BluetoothChooser *self, const char *title);
|
a BluetoothChooser widget |
|
the widget header title |
gchar * bluetooth_chooser_get_selected_device (BluetoothChooser *self);
|
a BluetoothChooser widget |
Returns : |
the Bluetooth address for the currently selected device, or NULL
|
gchar * bluetooth_chooser_get_selected_device_name (BluetoothChooser *self);
|
a BluetoothChooser widget |
Returns : |
the name for the currently selected device, or NULL
|
gchar * bluetooth_chooser_get_selected_device_icon (BluetoothChooser *self);
|
a BluetoothChooser widget |
Returns : |
the icon name to use to represent the currently selected device, or NULL
|
void bluetooth_chooser_start_discovery (BluetoothChooser *self);
Starts a discovery on the default Bluetooth adapter. Note that this will only work if the Search button is visible, as otherwise the user has no visual feedback that the process is on-going.
See also: "show-search"
|
a BluetoothChooser widget |
"device-category-filter"
property"device-category-filter" gint : Read / Write
FIXME
Allowed values: [0,5]
Default value: 0
"device-selected"
property"device-selected" gchar* : Read
the Bluetooth address for the currently selected device, or NULL
Default value: NULL
"device-selected-icon"
property"device-selected-icon" gchar* : Read
the icon name to use to represent the currently selected device, or NULL
Default value: NULL
"device-selected-is-connected"
property"device-selected-is-connected" gboolean : Read
whether the selected device is conncted to this computer, will be FALSE
if no devices are selected
Default value: FALSE
"device-selected-name"
property"device-selected-name" gchar* : Read
the name for the currently selected device
Default value: NULL
"device-selected-type"
property"device-selected-type" guint : Read
the currently selected device's type, or 0
Allowed values: [1,8192]
Default value: 1
"device-type-filter"
property"device-type-filter" gint : Read / Write
FIXME
Allowed values: [1,16383]
Default value: 1
"show-connected"
property"show-connected" gboolean : Read / Write
Whether to show the connected column in the tree.
Default value: FALSE
"show-device-category"
property"show-device-category" gboolean : Read / Write
Whether to show the device category filter
Default value: TRUE
"show-device-type"
property"show-device-type" gboolean : Read / Write
Whether to show the device type filter
Default value: TRUE
"show-pairing"
property"show-pairing" gboolean : Read / Write
Whether to show the pairing column in the tree.
Default value: FALSE
"show-search"
property"show-search" gboolean : Read / Write
Whether to show the Search button, this is necessary if you want to programmatically
start a discovery, using bluetooth_chooser_start_discovery()
Default value: FALSE
"selected-device-changed"
signalvoid user_function (BluetoothChooser *arg0, gchar *arg1, gpointer user_data) : Run Last
bluetoothchooser
: a BluetoothChooser widget
arg1
: the Bluetooth address for the currently selected device, or NULL
The "selected-device-changed" signal is launched when the
selected device is changed, it will be NULL
is a device was unselected.
|
user data set when the signal handler was connected. |