BluetoothChooserCombo

BluetoothChooserCombo — a Bluetooth chooser combo button

Stability Level

Stable, unless otherwise indicated

Synopsis

#include <bluetooth-chooser-combo.h>

#define             BLUETOOTH_CHOOSER_COMBO_FIRST_DEVICE
                    BluetoothChooserCombo;
struct              BluetoothChooserComboClass;
GtkWidget *         bluetooth_chooser_combo_new         (void);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkBox
                           +----BluetoothChooserCombo

Implemented Interfaces

BluetoothChooserCombo implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Properties

  "chooser"                  BluetoothChooser*     : Read
  "device"                   gchar*                : Read / Write

Signals

  "chooser-created"                                : Run Last

Description

A combo box used to select Bluetooth devices.

Details

BLUETOOTH_CHOOSER_COMBO_FIRST_DEVICE

#define BLUETOOTH_CHOOSER_COMBO_FIRST_DEVICE "00:00:00:00:00:00"

A convenience value used to select the first device regardless of its address.


BluetoothChooserCombo

typedef struct _BluetoothChooserCombo BluetoothChooserCombo;


struct BluetoothChooserComboClass

struct BluetoothChooserComboClass {
  GtkBoxClass parent_class;

  void (*chooser_created) (BluetoothChooserCombo *self, GtkWidget *chooser);
};


bluetooth_chooser_combo_new ()

GtkWidget *         bluetooth_chooser_combo_new         (void);

Returns a new BluetoothChooserCombo widget.

Returns :

a BluetoothChooserCombo widget.

Property Details

The "chooser" property

  "chooser"                  BluetoothChooser*     : Read

The BluetoothChooser used in the widget


The "device" property

  "device"                   gchar*                : Read / Write

The Bluetooth address of the selected device or NULL

Default value: NULL

Signal Details

The "chooser-created" signal

void                user_function                      (BluetoothChooserCombo *self,
                                                        GObject               *chooser,
                                                        gpointer               user_data)      : Run Last

The signal is sent when a popup dialogue is created for the user to select a device. This signal allows you to change the configuration and filtering of the tree from its defaults.

self :

a BluetoothChooserCombo widget

chooser :

a BluetoothChooser widget

user_data :

user data set when the signal handler was connected.