GOComboBox

GOComboBox

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBox
                        ╰── GtkHBox
                            ╰── GOComboBox
                                ├── GOCalendarButton
                                ├── GOComboColor
                                ├── GOComboPixmaps
                                ╰── GOComboText

Implemented Interfaces

GOComboBox implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Description

Functions

GO_COMBO_BOX()

#define GO_COMBO_BOX(o)		G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_COMBO_BOX, GOComboBox)


GO_IS_COMBO_BOX()

#define GO_IS_COMBO_BOX(o) G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_COMBO_BOX)


GO_COMBO_BOX_CLASS()

#define GO_COMBO_BOX_CLASS(k) G_TYPE_CHECK_CLASS_CAST ((k), GO_TYPE_COMBO_BOX, GOComboBoxClass)


go_combo_box_get_type ()

GType
go_combo_box_get_type (void);


go_combo_box_set_tooltip ()

void
go_combo_box_set_tooltip (GOComboBox *combo,
                          void *tips,
                          char const *text,
                          char const *priv_text);


go_combo_box_set_relief ()

void
go_combo_box_set_relief (GOComboBox *combo,
                         GtkReliefStyle relief);


go_combo_box_set_title ()

void
go_combo_box_set_title (GOComboBox *combo,
                        char const *title);

Set a title to display over the tearoff window.

FIXME:

This should really change the title even when the popup is already torn off. I guess the tearoff window could attach a listener to title change or something. But I don't think we need the functionality, so I didn't bother to investigate.

MW: Just make it a property.

Parameters

combo

Combo box

 

title

Title

 

go_combo_box_get_title ()

char const *
go_combo_box_get_title (GOComboBox *combo);


go_combo_box_set_tearable ()

void
go_combo_box_set_tearable (GOComboBox *combo,
                           gboolean tearable);

controls whether the combo box's pop up widget can be torn off.

Parameters

combo

Combo box

 

tearable

whether to allow the combo to be tearable

 

go_combo_box_construct ()

void
go_combo_box_construct (GOComboBox *combo,
                        GtkWidget *display_widget,
                        GtkWidget *popdown_container,
                        GtkWidget *popdown_focus);


go_combo_box_get_pos ()

void
go_combo_box_get_pos (GOComboBox *combo,
                      int *x,
                      int *y);


go_combo_box_popup_hide ()

void
go_combo_box_popup_hide (GOComboBox *combo);

Hides popup, but not when it is torn off. This is the external interface - for subclasses and apps which expect a regular combo which doesn't do tearoffs.

Parameters

combo

a GOComboBox

 

go_combo_box_popup_display ()

void
go_combo_box_popup_display (GOComboBox *combo);


go_combo_box_set_display ()

void
go_combo_box_set_display (GOComboBox *combo,
                          GtkWidget *display_widget);

Sets the displayed widget for the combo_box to be display_widget

Parameters

combo

the GOComboBox to modify

 

display_widget

The widget to be displayed

 

Types and Values

struct GOComboBox

struct GOComboBox;


GO_TYPE_COMBO_BOX

#define GO_TYPE_COMBO_BOX (go_combo_box_get_type())


GOComboBoxPrivate

typedef struct _GOComboBoxPrivate GOComboBoxPrivate;

Signal Details

The “pop-down-done” signal

gboolean
user_function (GOComboBox *gocombobox,
               GObject    *arg1,
               gpointer    user_data)

Parameters

gocombobox

the object which received the signal.

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last