From 7bac2733ca1c0056f9d2e6ae900aeaa93a18e0f5 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 15 Mar 2024 13:47:07 +0200 Subject: [PATCH] chore: fix old attribute syntax notices with latest V --- src/_c.v | 2 +- src/lib.v | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/_c.v b/src/_c.v index e44e5a4..6e7f169 100644 --- a/src/_c.v +++ b/src/_c.v @@ -17,7 +17,7 @@ $if macos { #pkgconfig gtk+-3.0 } -[typedef] +@[typedef] struct C.osdialog_color { r u8 g u8 diff --git a/src/lib.v b/src/lib.v index 774b202..e9f135f 100644 --- a/src/lib.v +++ b/src/lib.v @@ -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.