Top | ![]() |
![]() |
![]() |
![]() |
BluetoothCategory | device-category-filter | Read / Write / Construct |
char * | device-selected | Read / Write |
char * | device-service-filter | Write |
int | device-type-filter | Read / Write / Construct |
gboolean | has-internal-device-filter | Read / Write / Construct Only |
gboolean | show-connected | Read / Write |
gboolean | show-device-category | Read / Write / Construct |
gboolean | show-device-type | Read / Write / Construct |
gboolean | show-device-type-column | Read / Write / Construct |
gboolean | show-pairing | Read / Write |
gboolean | show-searching | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── BluetoothChooser
BluetoothChooser implements AtkImplementorIface, GtkBuildable and GtkOrientable.
void
bluetooth_chooser_dump_selected_device
(BluetoothChooser *self
);
Prints all the known attributes for the currently selected device on the standard output. Useful for debugging.
GtkWidget *
bluetooth_chooser_get_scrolled_window (BluetoothChooser *self
);
Returns the GtkScrolledWindow object for the BluetoothChooser.
This is useful to set a minimum height to the chooser using
gtk_scrolled_window_set_min_content_height()
or to join the
chooser with a toolbar.
char *
bluetooth_chooser_get_selected_device (BluetoothChooser *self
);
Returns the Bluetooth address for the currently selected device.
char *
bluetooth_chooser_get_selected_device_icon
(BluetoothChooser *self
);
Returns the icon name to use to represent the currently selected device.
gboolean bluetooth_chooser_get_selected_device_info (BluetoothChooser *self
,const char *field
,GValue *value
);
Returns whether the value
has been set.
self |
A BluetoothChooser widget. |
|
field |
The identifier for the field to get data for. |
|
value |
An empty GValue to set. |
gboolean
bluetooth_chooser_get_selected_device_is_connected
(BluetoothChooser *self
);
Returns whether the selected device is connected to this computer.
char *
bluetooth_chooser_get_selected_device_name
(BluetoothChooser *self
);
Returns the name for the currently selected device.
BluetoothType
bluetooth_chooser_get_selected_device_type
(BluetoothChooser *self
);
Returns the BluetoothType of the device selected.
GtkWidget *
bluetooth_chooser_new (void
);
Returns a new BluetoothChooser widget.
void
bluetooth_chooser_start_discovery (BluetoothChooser *self
);
Starts a discovery on the default Bluetooth adapter. Note that this will only work if the Search label is visible, as otherwise the user has no visual feedback that the process is on-going.
See also: “show-searching”
void
bluetooth_chooser_stop_discovery (BluetoothChooser *self
);
Stops a discovery started with bluetooth_chooser_start_discovery.
“device-category-filter”
property“device-category-filter” BluetoothCategory
The #BluetoothCategory to show.
Owner: BluetoothChooser
Flags: Read / Write / Construct
Default value: BLUETOOTH_CATEGORY_ALL
“device-selected”
property “device-selected” char *
The Bluetooth address for the currently selected device, or %NULL.
Owner: BluetoothChooser
Flags: Read / Write
Default value: NULL
“device-service-filter”
property “device-service-filter” char *
A string representing the service to filter for.
Owner: BluetoothChooser
Flags: Write
Default value: NULL
“device-type-filter”
property “device-type-filter” int
A bitmask of #BluetoothType to show.
Owner: BluetoothChooser
Flags: Read / Write / Construct
Allowed values: [1,2097151]
Default value: 1
“has-internal-device-filter”
property “has-internal-device-filter” gboolean
Whether the #BluetoothChooser should be constructed with a visible #BluetoothFilterWidget.
Owner: BluetoothChooser
Flags: Read / Write / Construct Only
Default value: TRUE
“show-connected”
property “show-connected” gboolean
Whether to show the connected column in the tree.
Owner: BluetoothChooser
Flags: Read / Write
Default value: FALSE
“show-device-category”
property “show-device-category” gboolean
Whether to show the device category filter.
Owner: BluetoothChooser
Flags: Read / Write / Construct
Default value: TRUE
“show-device-type”
property “show-device-type” gboolean
Whether to show the device type filter.
Owner: BluetoothChooser
Flags: Read / Write / Construct
Default value: TRUE
“show-device-type-column”
property “show-device-type-column” gboolean
Whether to show the device type column.
Owner: BluetoothChooser
Flags: Read / Write / Construct
Default value: TRUE
“show-pairing”
property “show-pairing” gboolean
Whether to show the pairing column in the tree.
Owner: BluetoothChooser
Flags: Read / Write
Default value: FALSE
“selected-device-activated”
signalvoid user_function (BluetoothChooser *chooser, char *address, gpointer user_data)
The “selected-device-activated” signal is launched when a device is double-clicked in the chooser.
chooser |
a BluetoothChooser widget which received the signal |
|
address |
the Bluetooth address for the currently selected device, or |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“selected-device-changed”
signalvoid user_function (BluetoothChooser *chooser, char *address, gpointer user_data)
The “selected-device-changed” signal is launched when the
selected device is changed, it will be NULL
if a device was unselected.
chooser |
a BluetoothChooser widget which received the signal |
|
address |
the Bluetooth address for the currently selected device, or |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last