Skip to content

Commit

Permalink
chore: fix old attribute syntax notices with latest V
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Mar 15, 2024
1 parent 22f1b54 commit 7bac273
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/_c.v
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $if macos {
#pkgconfig gtk+-3.0
}

[typedef]
@[typedef]
struct C.osdialog_color {
r u8
g u8
Expand Down
12 changes: 6 additions & 6 deletions src/lib.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,37 @@ module dialog

import os

[params]
@[params]
pub struct MessageOptions {
level MessageLevel
buttons MessageButtons
}

[params]
@[params]
pub struct PromptOptions {
level MessageLevel
text string // is the initial input text.
}

[params]
@[params]
pub struct FileDialogOptions {
action FileAction
path string // is the default folder the dialog will attempt to open in.
filename string // is the default text that will appear in the filename input. Only when the action is `.save`.
}

[params]
@[params]
pub struct FileOpenOptions {
path string // is the default folder the dialog will attempt to open in.
}

[params]
@[params]
pub struct FileSaveOptions {
path string // is the default folder the dialog will attempt to open in.
filename string // is the default text that will appear in the filename input.
}

[params]
@[params]
pub struct ColorPickerOptions {
color Color // is the initial color.
opacity bool = true // can be set to `false` to disable the opacity slider on Linux.
Expand Down

0 comments on commit 7bac273

Please sign in to comment.