Skip to content

Commit

Permalink
fix: gtk linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Sep 23, 2024
1 parent 28ad74a commit 5c058ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/gtk/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func updateMessageDialog(dlg *gtk.MessageDialog) {

func showQuestionDialog(parent gtk.IWindow, msg string) bool {
dlg := gtk.MessageDialogNew(parent,
gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, msg)
gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, "%s", msg)
updateMessageDialog(dlg)
res := dlg.Run()
dlg.Destroy()
Expand All @@ -46,23 +46,23 @@ func showQuestionDialog(parent gtk.IWindow, msg string) bool {

func showInfoDialog(parent gtk.IWindow, msg string) {
dlg := gtk.MessageDialogNew(parent,
gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, msg)
gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, "%s", msg)
updateMessageDialog(dlg)
dlg.Run()
dlg.Destroy()
}

func showWarningDialog(parent gtk.IWindow, msg string) {
dlg := gtk.MessageDialogNew(parent,
gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, msg)
gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, "%s", msg)
updateMessageDialog(dlg)
dlg.Run()
dlg.Destroy()
}

func showErrorDialog(parent gtk.IWindow, msg string) {
dlg := gtk.MessageDialogNew(parent,
gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, msg)
gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, "%s", msg)
updateMessageDialog(dlg)
dlg.Run()
dlg.Destroy()
Expand Down

0 comments on commit 5c058ea

Please sign in to comment.