dialogs

package
v0.0.0-...-aa2bd2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialog

type Dialog struct {
	*gtk.Dialog

	OK     *gtk.Button
	Cancel *gtk.Button
}

Dialog provides a dialog with a headerbar.

func New

func New(ctx context.Context, cancel, ok string) *Dialog

New creates a new dialog.

func NewLocalize

func NewLocalize(ctx context.Context, cancel, ok locale.Localized) *Dialog

NewLocalize creates a new dialog using message references as button labels.

func (*Dialog) BindCancelClose

func (d *Dialog) BindCancelClose()

BindCancelClose binds cancel to closing the dialog.

func (*Dialog) BindEnterOK

func (d *Dialog) BindEnterOK()

BindEnterOK binds the Enter key to activate the OK button.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL