| swamigui Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define COMBO_BOX_TYPE
#define COMBO_BOX (obj)
#define COMBO_BOX_CLASS (klass)
#define IS_COMBO_BOX (obj)
ComboBoxPrivate;
ComboBox;
GtkType combo_box_get_type (void);
void combo_box_construct (ComboBox *combo_box,
GtkWidget *display_widget,
GtkWidget *optional_pop_down_widget);
void combo_box_get_pos (ComboBox *combo_box,
int *x,
int *y);
GtkWidget * combo_box_new (GtkWidget *display_widget,
GtkWidget *optional_pop_down_widget);
void combo_box_popup_hide (ComboBox *combo_box);
void combo_box_set_display (ComboBox *combo_box,
GtkWidget *display_widget);
void combo_box_set_title (ComboBox *combo,
const gchar *title);
void combo_box_set_tearable (ComboBox *combo,
gboolean tearable);
void combo_box_set_arrow_sensitive (ComboBox *combo,
gboolean sensitive);
void combo_box_set_arrow_relief (ComboBox *cc,
GtkReliefStyle relief);
void combo_box_construct (ComboBox *combo_box,
GtkWidget *display_widget,
GtkWidget *optional_pop_down_widget);
GtkWidget * combo_box_new (GtkWidget *display_widget, GtkWidget *optional_pop_down_widget);
void combo_box_popup_hide (ComboBox *combo_box);
Hide 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.
|
Combo box |
void combo_box_set_display (ComboBox *combo_box,
GtkWidget *display_widget);
Sets the displayed widget for the combo_box to be display_widget
|
the Combo Box to modify |
|
The widget to be displayed |
void combo_box_set_title (ComboBox *combo,
const gchar *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.
|
Combo box |
|
Title |
void combo_box_set_tearable (ComboBox *combo,
gboolean tearable);
controls whether the combo box's pop up widget can be torn off.
|
Combo box |
|
whether to allow the combo to be tearable
|
void combo_box_set_arrow_sensitive (ComboBox *combo,
gboolean sensitive);
Toggle the sensitivity of the arrow button
|
Combo box |
|
Sensitivity value |
void combo_box_set_arrow_relief (ComboBox *cc,
GtkReliefStyle relief);