Classes | Defines | Typedefs | Functions

go-combo-box.h File Reference

#include <gtk/gtkhbox.h>
#include <gtk/gtktooltips.h>

Go to the source code of this file.

Classes

struct  _GOComboBox
struct  _GOComboBoxClass

Defines

#define GO_COMBO_BOX_TYPE   (go_combo_box_get_type())
#define GO_COMBO_BOX(o)   G_TYPE_CHECK_INSTANCE_CAST ((o), GO_COMBO_BOX_TYPE, GOComboBox)
#define IS_GO_COMBO_BOX(o)   G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_COMBO_BOX_TYPE)
#define GO_COMBO_BOX_CLASS(k)   G_TYPE_CHECK_CLASS_CAST ((k), GO_COMBO_BOX_TYPE, GOComboBoxClass)

Typedefs

typedef struct _GOComboBox GOComboBox
typedef struct _GOComboBoxPrivate GOComboBoxPrivate
typedef struct _GOComboBoxClass GOComboBoxClass

Functions

GType go_combo_box_get_type (void)
void go_combo_box_set_tooltip_text (GOComboBox *combo, char const *text)
void go_combo_box_set_relief (GOComboBox *combo, GtkReliefStyle relief)
void go_combo_box_set_title (GOComboBox *combo, char const *title)
 go_combo_box_set_title : Combo box : Title
char const * go_combo_box_get_title (GOComboBox *combo)
void go_combo_box_set_tearable (GOComboBox *combo, gboolean tearable)
 go_combo_box_set_tearable: : Combo box : whether to allow the to be tearable
void go_combo_box_construct (GOComboBox *combo, GtkWidget *display_widget, GtkWidget *popdown_container, GtkWidget *popdown_focus)
void go_combo_box_get_pos (GOComboBox *combo, int *x, int *y)
void go_combo_box_popup_hide (GOComboBox *combo)
 go_combo_box_popup_hide: : a GOComboBox
void go_combo_box_popup_display (GOComboBox *combo)
void go_combo_box_set_display (GOComboBox *combo, GtkWidget *display_widget)
gboolean _go_combo_is_updating (GOComboBox const *combo)

Define Documentation

#define GO_COMBO_BOX (   o  )     G_TYPE_CHECK_INSTANCE_CAST ((o), GO_COMBO_BOX_TYPE, GOComboBox)
#define GO_COMBO_BOX_CLASS (   k  )     G_TYPE_CHECK_CLASS_CAST ((k), GO_COMBO_BOX_TYPE, GOComboBoxClass)
#define GO_COMBO_BOX_TYPE   (go_combo_box_get_type())
#define IS_GO_COMBO_BOX (   o  )     G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_COMBO_BOX_TYPE)

Typedef Documentation

typedef struct _GOComboBox GOComboBox

Function Documentation

gboolean _go_combo_is_updating ( GOComboBox const *  combo  ) 
void go_combo_box_construct ( GOComboBox combo,
GtkWidget *  display_widget,
GtkWidget *  popdown_container,
GtkWidget *  popdown_focus 
)
void go_combo_box_get_pos ( GOComboBox combo,
int *  x,
int *  y 
)
char const* go_combo_box_get_title ( GOComboBox combo  ) 

Referenced by go_combo_popup_tear_off().

GType go_combo_box_get_type ( void   ) 
void go_combo_box_popup_display ( GOComboBox combo  ) 
void go_combo_box_popup_hide ( GOComboBox combo_box  ) 

go_combo_box_popup_hide: : a GOComboBox

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.

References go_combo_box_popup_hide_unconditional(), go_combo_popup_tear_off(), gtk_widget_get_visible(), _GOComboBox::priv, set_arrow_state(), _GOComboBoxPrivate::toplevel, and _GOComboBoxPrivate::torn_off.

Referenced by cb_proxy_custom_dialog(), emit_color_changed(), and go_combo_box_button_press().

void go_combo_box_set_display ( GOComboBox combo,
GtkWidget *  display_widget 
)
void go_combo_box_set_relief ( GOComboBox combo,
GtkReliefStyle  relief 
)
void go_combo_box_set_tearable ( GOComboBox combo,
gboolean  tearable 
)

go_combo_box_set_tearable: : Combo box : whether to allow the to be tearable

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

References go_combo_set_tearoff_state(), GO_IS_COMBO_BOX, IS_GO_COMBO_BOX, _GOComboBox::priv, and _GOComboBoxPrivate::tearable.

Referenced by go_combo_box_construct(), and go_combo_box_style_set().

void go_combo_box_set_title ( GOComboBox combo,
char const *  title 
)

go_combo_box_set_title : Combo box : 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.

References GO_COMBO_BOX_TYPE, GO_TYPE_COMBO_BOX, and _GOComboBoxClass::set_title.

void go_combo_box_set_tooltip_text ( GOComboBox combo,
char const *  text 
)