Skip to content

Commit

Permalink
Merge pull request gotk3#372 from alpicoid/master
Browse files Browse the repository at this point in the history
Add a wrapper around gtk_menu_item_set_use_underline() and gtk_menu_item_get_use_underline()
  • Loading branch information
Bios-Marcel authored May 4, 2019
2 parents 0213887 + 9334486 commit ff571eb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gtk/gtk.go
Original file line number Diff line number Diff line change
Expand Up @@ -5285,6 +5285,17 @@ func (v *MenuItem) GetLabel() string {
return goString(l)
}

// SetUseUnderline() is a wrapper around gtk_menu_item_set_use_underline()
func (v *MenuItem) SetUseUnderline(settings bool) {
C.gtk_menu_item_set_use_underline(v.native(), gbool(settings))
}

// GetUseUnderline() is a wrapper around gtk_menu_item_get_use_underline()
func (v *MenuItem) GetUseUnderline() bool {
c := C.gtk_menu_item_get_use_underline(v.native())
return gobool(c)
}

/*
* GtkMessageDialog
*/
Expand Down

0 comments on commit ff571eb

Please sign in to comment.