gtk/accel.go
func (v *Widget) AddAccelerator(signal string, group *AccelGroup, key uint, mods gdk.ModifierType, flags AccelFlags) {
	csignal := (*C.gchar)(C.CString(signal))
	defer C.free(unsafe.Pointer(csignal))

	C.gtk_widget_add_accelerator(v.native(),
		csignal,
		group.native(),
		C.guint(key),
		C.GdkModifierType(mods),
		C.GtkAccelFlags(flags))
}
func (v *Widget) AddAccelerator(signal string, group *AccelGroup, key uint, mods gdk.ModifierType, flags AccelFlags) {
	csignal := (*C.gchar)(C.CString(signal))
	defer C.free(unsafe.Pointer(csignal))

	C.gtk_widget_add_accelerator(v.native(),
		csignal,
		group.native(),
		C.guint(key),
		C.GdkModifierType(mods),
		C.GtkAccelFlags(flags))
}
func ( v * Widget ) AddAccelerator ( signal string , group * AccelGroup , key uint , mods gdk . ModifierType , flags AccelFlags ) { csignal := ( * C . gchar ) ( C . CString ( signal ) ) defer C . free ( unsafe . Pointer ( csignal ) ) C . gtk_widget_add_accelerator ( v . native ( ) , csignal , group . native ( ) , C . guint ( key ) , C . GdkModifierType ( mods ) , C . GtkAccelFlags ( flags ) ) }
// AddAccelerator is a wrapper around gtk_widget_add_accelerator().
AddAccelerator is a wrapper around gtk_widget_add_accelerator () .