From 62e66e7fbd4b86c6db9829a2698b531f00e9541d Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Tue, 26 Jul 2022 17:02:42 +0100 Subject: [PATCH] Fix #35. --- zenity.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zenity.go b/zenity.go index caefe0f..ed9c3fc 100644 --- a/zenity.go +++ b/zenity.go @@ -160,7 +160,8 @@ const ( // Icon returns an Option to set the dialog icon. // // Icon accepts a DialogIcon, or a string. -// The string can be a GTK icon name (Unix), or a path (Windows and macOS). +// The string can be a GTK icon name (Unix), or a file path (Windows and macOS). +// Supported file formats depend on the plaftorm, but PNG should be cross-platform. func Icon(icon any) Option { switch icon.(type) { case DialogIcon, string: @@ -172,7 +173,8 @@ func Icon(icon any) Option { // WindowIcon returns an Option to set the window icon. // -// WindowIcon accepts a DialogIcon, or a string path. +// WindowIcon accepts a DialogIcon, or a string file path. +// Supported file formats depend on the plaftorm, but PNG should be cross-platform. func WindowIcon(icon any) Option { switch icon.(type) { case DialogIcon, string: