Skip to content

Commit

Permalink
Implemented a simple non-GTK-spec method for easy retrieval of the En…
Browse files Browse the repository at this point in the history
…try widget within ComboBoxText widgets.
  • Loading branch information
kckrinke committed May 6, 2018
1 parent eb8eeba commit 1e1a65a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gtk/gtk.go
Expand Up @@ -6244,6 +6244,11 @@ func (v *ComboBoxText) GetActiveText() string {
return gostring(C._gtk_combo_box_text_get_active_text(COMBO_BOX_TEXT(v)))
}

func (v *ComboBoxText) GetEntry() *Entry {
w := v.GetChild()
return &Entry{*w, Editable{C.toGEditable(w.GWidget)}}
}

//-----------------------------------------------------------------------
// GtkComboBoxEntry
//-----------------------------------------------------------------------
Expand Down

0 comments on commit 1e1a65a

Please sign in to comment.