{-# LINE 2 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
-- -*-haskell-*-
-- GIMP Toolkit (GTK) Widget AboutDialog
--
-- Author : Duncan Coutts
--
-- Created: 1 March 2005
--
-- Copyright (C) 2005 Duncan Coutts
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any later version.
--
-- This library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- Lesser General Public License for more details.
--
-- |
-- Maintainer : gtk2hs-users@lists.sourceforge.net
-- Stability : provisional
-- Portability : portable (depends on GHC)
--
-- Display information about an application
--
-- * Module available since Gtk+ version 2.6
--
module Graphics.UI.Gtk.Windows.AboutDialog (
-- * Detail
--
-- | The 'AboutDialog' offers a simple way to display information about a
-- program like its logo, name, copyright, website and license. It is also
-- possible to give credits to the authors, documenters, translators and
-- artists who have worked on the program. An about dialog is typically opened
-- when the user selects the @About@ option from the @Help@ menu. All parts of
-- the dialog are optional.
--
-- About dialog often contain links and email addresses. 'AboutDialog'
-- supports this by offering global hooks, which are called when the user
-- clicks on a link or email address, see 'aboutDialogSetEmailHook' and
-- 'aboutDialogSetUrlHook'. Email addresses in the authors, documenters and
-- artists properties are recognized by looking for @\<user\@host>@, URLs are
-- recognized by looking for @http:\/\/url@, with @url@ extending to the next
-- space, tab or line break.
-- Since 2.18 'AboutDialog' provides default website and email hooks that
-- use 'showURI'.
--
-- Note that Gtk+ sets a default title of @_(\"About %s\")@ on the dialog
-- window (where %s is replaced by the name of the application, but in order to
-- ensure proper translation of the title, applications should set the title
-- property explicitly when constructing a 'AboutDialog', as shown in the
-- following example:
--
-- Note that prior to Gtk+ 2.12, the 'aboutDialogProgramName' property was called
-- 'aboutDialogName'. Both names may be used in Gtk2Hs.

-- * Class Hierarchy
-- |
-- @
-- | 'GObject'
-- | +----'Object'
-- | +----'Widget'
-- | +----'Container'
-- | +----'Bin'
-- | +----'Window'
-- | +----'Dialog'
-- | +----AboutDialog
-- @


-- * Types
  AboutDialog,
  AboutDialogClass,
  castToAboutDialog, gTypeAboutDialog,
  toAboutDialog,

-- * Constructors
  aboutDialogNew,

-- * Methods

  aboutDialogSetEmailHook,
  aboutDialogSetUrlHook,


-- * Attributes
  aboutDialogProgramName,
  aboutDialogName,
  aboutDialogVersion,
  aboutDialogCopyright,
  aboutDialogComments,
  aboutDialogLicense,
  aboutDialogWebsite,
  aboutDialogWebsiteLabel,
  aboutDialogAuthors,
  aboutDialogDocumenters,
  aboutDialogArtists,
  aboutDialogTranslatorCredits,
  aboutDialogLogo,
  aboutDialogLogoIconName,

  aboutDialogWrapLicense,


-- * Deprecated

  aboutDialogGetName,
  aboutDialogSetName,
  aboutDialogGetVersion,
  aboutDialogSetVersion,
  aboutDialogGetCopyright,
  aboutDialogSetCopyright,
  aboutDialogGetComments,
  aboutDialogSetComments,
  aboutDialogGetLicense,
  aboutDialogSetLicense,
  aboutDialogGetWebsite,
  aboutDialogSetWebsite,
  aboutDialogGetWebsiteLabel,
  aboutDialogSetWebsiteLabel,
  aboutDialogSetAuthors,
  aboutDialogGetAuthors,
  aboutDialogSetArtists,
  aboutDialogGetArtists,
  aboutDialogSetDocumenters,
  aboutDialogGetDocumenters,
  aboutDialogGetTranslatorCredits,
  aboutDialogSetTranslatorCredits,
  aboutDialogGetLogo,
  aboutDialogSetLogo,
  aboutDialogGetLogoIconName,
  aboutDialogSetLogoIconName,

  aboutDialogGetWrapLicense,
  aboutDialogSetWrapLicense,



  ) where

import Control.Monad (liftM)
import Data.Maybe (fromMaybe)

import System.Glib.FFI
import System.Glib.UTFString
import System.Glib.Attributes
import System.Glib.Properties
import Graphics.UI.Gtk.Abstract.Object (makeNewObject)
import Graphics.UI.Gtk.Types
{-# LINE 152 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}


{-# LINE 154 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}


--------------------
-- Constructors

-- | Creates a new 'AboutDialog'.
--
aboutDialogNew :: IO AboutDialog
aboutDialogNew :: IO AboutDialog
aboutDialogNew =
  (ForeignPtr AboutDialog -> AboutDialog, FinalizerPtr AboutDialog)
-> IO (Ptr AboutDialog) -> IO AboutDialog
forall obj.
ObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewObject (ForeignPtr AboutDialog -> AboutDialog, FinalizerPtr AboutDialog)
forall {a}. (ForeignPtr AboutDialog -> AboutDialog, FinalizerPtr a)
mkAboutDialog (IO (Ptr AboutDialog) -> IO AboutDialog)
-> IO (Ptr AboutDialog) -> IO AboutDialog
forall a b. (a -> b) -> a -> b
$
  (Ptr Widget -> Ptr AboutDialog)
-> IO (Ptr Widget) -> IO (Ptr AboutDialog)
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Ptr Widget -> Ptr AboutDialog
forall a b. Ptr a -> Ptr b
castPtr :: Ptr Widget -> Ptr AboutDialog) (IO (Ptr Widget) -> IO (Ptr AboutDialog))
-> IO (Ptr Widget) -> IO (Ptr AboutDialog)
forall a b. (a -> b) -> a -> b
$
  IO (Ptr Widget)
gtk_about_dialog_new
{-# LINE 166 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}

--------------------
-- Methods


-- | Returns the program name displayed in the about dialog.
--
aboutDialogGetName :: (AboutDialogClass self, GlibString string) => self
 -> IO string -- ^ returns The program name.
aboutDialogGetName :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO string
aboutDialogGetName self
self =

  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr CChar)
gtk_about_dialog_get_program_name Ptr AboutDialog
argPtr1)
{-# LINE 178 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}



    (self -> AboutDialog
forall o. AboutDialogClass o => o -> AboutDialog
toAboutDialog self
self)
  IO (Ptr CChar) -> (Ptr CChar -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString

-- | Sets the name to display in the about dialog. If this is not set, it
-- defaults to the program executable name.
--
aboutDialogSetName :: (AboutDialogClass self, GlibString string) => self
 -> string -- ^ @name@ - the program name
 -> IO ()
aboutDialogSetName :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> string -> IO ()
aboutDialogSetName self
self string
name =
  string -> (Ptr CChar -> IO ()) -> IO ()
forall a. string -> (Ptr CChar -> IO a) -> IO a
forall s a. GlibString s => s -> (Ptr CChar -> IO a) -> IO a
withUTFString string
name ((Ptr CChar -> IO ()) -> IO ()) -> (Ptr CChar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
namePtr ->

  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr CChar
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr CChar -> IO ()
gtk_about_dialog_set_program_name Ptr AboutDialog
argPtr1 Ptr CChar
arg2)
{-# LINE 194 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}



    (self -> AboutDialog
forall o. AboutDialogClass o => o -> AboutDialog
toAboutDialog self
self)
    Ptr CChar
namePtr

-- | Returns the version string.
--
aboutDialogGetVersion :: (AboutDialogClass self, GlibString string) => self -> IO string
aboutDialogGetVersion :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO string
aboutDialogGetVersion self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr CChar)
gtk_about_dialog_get_version Ptr AboutDialog
argPtr1)
{-# LINE 205 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr CChar) -> (Ptr CChar -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString

-- | Sets the version string to display in the about dialog.
--
aboutDialogSetVersion :: (AboutDialogClass self, GlibString string) => self -> string -> IO ()
aboutDialogSetVersion :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> string -> IO ()
aboutDialogSetVersion self
self string
version =
  string -> (Ptr CChar -> IO ()) -> IO ()
forall a. string -> (Ptr CChar -> IO a) -> IO a
forall s a. GlibString s => s -> (Ptr CChar -> IO a) -> IO a
withUTFString string
version ((Ptr CChar -> IO ()) -> IO ()) -> (Ptr CChar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
versionPtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr CChar
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr CChar -> IO ()
gtk_about_dialog_set_version Ptr AboutDialog
argPtr1 Ptr CChar
arg2)
{-# LINE 214 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr CChar
versionPtr

-- | Returns the copyright string.
--
aboutDialogGetCopyright :: (AboutDialogClass self, GlibString string) => self -> IO string
aboutDialogGetCopyright :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO string
aboutDialogGetCopyright self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr CChar)
gtk_about_dialog_get_copyright Ptr AboutDialog
argPtr1)
{-# LINE 222 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr CChar) -> (Ptr CChar -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString

-- | Sets the copyright string to display in the about dialog. This should be
-- a short string of one or two lines.
--
aboutDialogSetCopyright :: (AboutDialogClass self, GlibString string) => self -> string -> IO ()
aboutDialogSetCopyright :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> string -> IO ()
aboutDialogSetCopyright self
self string
copyright =
  string -> (Ptr CChar -> IO ()) -> IO ()
forall a. string -> (Ptr CChar -> IO a) -> IO a
forall s a. GlibString s => s -> (Ptr CChar -> IO a) -> IO a
withUTFString string
copyright ((Ptr CChar -> IO ()) -> IO ()) -> (Ptr CChar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
copyrightPtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr CChar
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr CChar -> IO ()
gtk_about_dialog_set_copyright Ptr AboutDialog
argPtr1 Ptr CChar
arg2)
{-# LINE 232 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr CChar
copyrightPtr

-- | Returns the comments string.
--
aboutDialogGetComments :: (AboutDialogClass self, GlibString string) => self -> IO string
aboutDialogGetComments :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO string
aboutDialogGetComments self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr CChar)
gtk_about_dialog_get_comments Ptr AboutDialog
argPtr1)
{-# LINE 240 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr CChar) -> (Ptr CChar -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString

-- | Sets the comments string to display in the about dialog. This should be a
-- short string of one or two lines.
--
aboutDialogSetComments :: (AboutDialogClass self, GlibString string) => self -> string -> IO ()
aboutDialogSetComments :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> string -> IO ()
aboutDialogSetComments self
self string
comments =
  string -> (Ptr CChar -> IO ()) -> IO ()
forall a. string -> (Ptr CChar -> IO a) -> IO a
forall s a. GlibString s => s -> (Ptr CChar -> IO a) -> IO a
withUTFString string
comments ((Ptr CChar -> IO ()) -> IO ()) -> (Ptr CChar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
commentsPtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr CChar
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr CChar -> IO ()
gtk_about_dialog_set_comments Ptr AboutDialog
argPtr1 Ptr CChar
arg2)
{-# LINE 250 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr CChar
commentsPtr

-- | Returns the license information.
--
aboutDialogGetLicense :: (AboutDialogClass self, GlibString string) => self -> IO (Maybe string)
aboutDialogGetLicense :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO (Maybe string)
aboutDialogGetLicense self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr CChar)
gtk_about_dialog_get_license Ptr AboutDialog
argPtr1)
{-# LINE 258 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr CChar)
-> (Ptr CChar -> IO (Maybe string)) -> IO (Maybe string)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= (Ptr CChar -> IO string) -> Ptr CChar -> IO (Maybe string)
forall a b. (Ptr a -> IO b) -> Ptr a -> IO (Maybe b)
maybePeek Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString

-- | Sets the license information to be displayed in the secondary license
-- dialog. If @license@ is @Nothing@, the license button is hidden.
--
aboutDialogSetLicense :: (AboutDialogClass self, GlibString string) => self
 -> Maybe string -- ^ @license@ - the license information or @Nothing@
 -> IO ()
aboutDialogSetLicense :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> Maybe string -> IO ()
aboutDialogSetLicense self
self Maybe string
license =
  (string -> (Ptr CChar -> IO ()) -> IO ())
-> Maybe string -> (Ptr CChar -> IO ()) -> IO ()
forall a b c.
(a -> (Ptr b -> IO c) -> IO c)
-> Maybe a -> (Ptr b -> IO c) -> IO c
maybeWith string -> (Ptr CChar -> IO ()) -> IO ()
forall a. string -> (Ptr CChar -> IO a) -> IO a
forall s a. GlibString s => s -> (Ptr CChar -> IO a) -> IO a
withUTFString Maybe string
license ((Ptr CChar -> IO ()) -> IO ()) -> (Ptr CChar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
licensePtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr CChar
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr CChar -> IO ()
gtk_about_dialog_set_license Ptr AboutDialog
argPtr1 Ptr CChar
arg2)
{-# LINE 270 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr CChar
licensePtr

-- | Returns the website URL.
--
aboutDialogGetWebsite :: (AboutDialogClass self, GlibString string) => self -> IO string
aboutDialogGetWebsite :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO string
aboutDialogGetWebsite self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr CChar)
gtk_about_dialog_get_website Ptr AboutDialog
argPtr1)
{-# LINE 278 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr CChar) -> (Ptr CChar -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString

-- | Sets the URL to use for the website link.
--
aboutDialogSetWebsite :: (AboutDialogClass self, GlibString string) => self
 -> string -- ^ @website@ - a URL string starting with \"http:\/\/\"
 -> IO ()
aboutDialogSetWebsite :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> string -> IO ()
aboutDialogSetWebsite self
self string
website =
  string -> (Ptr CChar -> IO ()) -> IO ()
forall a. string -> (Ptr CChar -> IO a) -> IO a
forall s a. GlibString s => s -> (Ptr CChar -> IO a) -> IO a
withUTFString string
website ((Ptr CChar -> IO ()) -> IO ()) -> (Ptr CChar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
websitePtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr CChar
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr CChar -> IO ()
gtk_about_dialog_set_website Ptr AboutDialog
argPtr1 Ptr CChar
arg2)
{-# LINE 289 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr CChar
websitePtr

-- | Returns the label used for the website link.
--
aboutDialogGetWebsiteLabel :: (AboutDialogClass self, GlibString string) => self -> IO string
aboutDialogGetWebsiteLabel :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO string
aboutDialogGetWebsiteLabel self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr CChar)
gtk_about_dialog_get_website_label Ptr AboutDialog
argPtr1)
{-# LINE 297 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr CChar) -> (Ptr CChar -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString

-- | Sets the label to be used for the website link. It defaults to the
-- website URL.
--
aboutDialogSetWebsiteLabel :: (AboutDialogClass self, GlibString string) => self -> string -> IO ()
aboutDialogSetWebsiteLabel :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> string -> IO ()
aboutDialogSetWebsiteLabel self
self string
websiteLabel =
  string -> (Ptr CChar -> IO ()) -> IO ()
forall a. string -> (Ptr CChar -> IO a) -> IO a
forall s a. GlibString s => s -> (Ptr CChar -> IO a) -> IO a
withUTFString string
websiteLabel ((Ptr CChar -> IO ()) -> IO ()) -> (Ptr CChar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
websiteLabelPtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr CChar
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr CChar -> IO ()
gtk_about_dialog_set_website_label Ptr AboutDialog
argPtr1 Ptr CChar
arg2)
{-# LINE 307 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr CChar
websiteLabelPtr


-- | Sets the strings which are displayed in the authors tab of the secondary
-- credits dialog.
--
aboutDialogSetAuthors :: (AboutDialogClass self, GlibString string) => self
 -> [string] -- ^ @authors@ - a list of author names
 -> IO ()
aboutDialogSetAuthors :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> [string] -> IO ()
aboutDialogSetAuthors self
self [string]
authors =
  [string] -> (Ptr (Ptr CChar) -> IO ()) -> IO ()
forall s a.
GlibString s =>
[s] -> (Ptr (Ptr CChar) -> IO a) -> IO a
withUTFStringArray0 [string]
authors ((Ptr (Ptr CChar) -> IO ()) -> IO ())
-> (Ptr (Ptr CChar) -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr (Ptr CChar)
authorsPtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr (Ptr CChar)
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr (Ptr CChar) -> IO ()
gtk_about_dialog_set_authors Ptr AboutDialog
argPtr1 Ptr (Ptr CChar)
arg2)
{-# LINE 320 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr (Ptr CChar)
authorsPtr

-- | Returns the string which are displayed in the authors tab of the
-- secondary credits dialog.
--
aboutDialogGetAuthors :: (AboutDialogClass self, GlibString string) => self -> IO [string]
aboutDialogGetAuthors :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO [string]
aboutDialogGetAuthors self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar)))
-> (Ptr AboutDialog -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr (Ptr CChar))
gtk_about_dialog_get_authors Ptr AboutDialog
argPtr1)
{-# LINE 329 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr (Ptr CChar))
-> (Ptr (Ptr CChar) -> IO [string]) -> IO [string]
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr (Ptr CChar) -> IO [string]
forall s. GlibString s => Ptr (Ptr CChar) -> IO [s]
peekUTFStringArray0

-- | Sets the strings which are displayed in the artists tab of the secondary
-- credits dialog.
--
aboutDialogSetArtists :: (AboutDialogClass self, GlibString string) => self
 -> [string] -- ^ @artists@ - a list of artist names
 -> IO ()
aboutDialogSetArtists :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> [string] -> IO ()
aboutDialogSetArtists self
self [string]
artists =
  [string] -> (Ptr (Ptr CChar) -> IO ()) -> IO ()
forall s a.
GlibString s =>
[s] -> (Ptr (Ptr CChar) -> IO a) -> IO a
withUTFStringArray0 [string]
artists ((Ptr (Ptr CChar) -> IO ()) -> IO ())
-> (Ptr (Ptr CChar) -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr (Ptr CChar)
artistsPtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr (Ptr CChar)
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr (Ptr CChar) -> IO ()
gtk_about_dialog_set_artists Ptr AboutDialog
argPtr1 Ptr (Ptr CChar)
arg2)
{-# LINE 341 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr (Ptr CChar)
artistsPtr

-- | Returns the string which are displayed in the artists tab of the
-- secondary credits dialog.
--
aboutDialogGetArtists :: (AboutDialogClass self, GlibString string) => self -> IO [string]
aboutDialogGetArtists :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO [string]
aboutDialogGetArtists self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar)))
-> (Ptr AboutDialog -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr (Ptr CChar))
gtk_about_dialog_get_artists Ptr AboutDialog
argPtr1)
{-# LINE 350 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr (Ptr CChar))
-> (Ptr (Ptr CChar) -> IO [string]) -> IO [string]
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr (Ptr CChar) -> IO [string]
forall s. GlibString s => Ptr (Ptr CChar) -> IO [s]
peekUTFStringArray0

-- | Sets the strings which are displayed in the documenters tab of the
-- secondary credits dialog.
--
aboutDialogSetDocumenters :: (AboutDialogClass self, GlibString string) => self
 -> [string] -- ^ @artists@ - a list of documenter names
 -> IO ()
aboutDialogSetDocumenters :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> [string] -> IO ()
aboutDialogSetDocumenters self
self [string]
documenters =
  [string] -> (Ptr (Ptr CChar) -> IO ()) -> IO ()
forall s a.
GlibString s =>
[s] -> (Ptr (Ptr CChar) -> IO a) -> IO a
withUTFStringArray0 [string]
documenters ((Ptr (Ptr CChar) -> IO ()) -> IO ())
-> (Ptr (Ptr CChar) -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr (Ptr CChar)
documentersPtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr (Ptr CChar)
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr (Ptr CChar) -> IO ()
gtk_about_dialog_set_documenters Ptr AboutDialog
argPtr1 Ptr (Ptr CChar)
arg2)
{-# LINE 362 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr (Ptr CChar)
documentersPtr

-- | Returns the string which are displayed in the documenters tab of the
-- secondary credits dialog.
--
aboutDialogGetDocumenters :: (AboutDialogClass self, GlibString string) => self -> IO [string]
aboutDialogGetDocumenters :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO [string]
aboutDialogGetDocumenters self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar)))
-> (Ptr AboutDialog -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr (Ptr CChar))
gtk_about_dialog_get_documenters Ptr AboutDialog
argPtr1)
{-# LINE 371 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr (Ptr CChar))
-> (Ptr (Ptr CChar) -> IO [string]) -> IO [string]
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr (Ptr CChar) -> IO [string]
forall s. GlibString s => Ptr (Ptr CChar) -> IO [s]
peekUTFStringArray0


-- | Returns the translator credits string which is displayed in the
-- translators tab of the secondary credits dialog.
--
aboutDialogGetTranslatorCredits :: (AboutDialogClass self, GlibString string) => self -> IO string
aboutDialogGetTranslatorCredits :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO string
aboutDialogGetTranslatorCredits self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr CChar)
gtk_about_dialog_get_translator_credits Ptr AboutDialog
argPtr1)
{-# LINE 381 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr CChar) -> (Ptr CChar -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString

-- | Sets the translator credits string which is displayed in the translators
-- tab of the secondary credits dialog.
--
-- The intended use for this string is to display the translator of the
-- language which is currently used in the user interface.
--
aboutDialogSetTranslatorCredits :: (AboutDialogClass self, GlibString string) => self -> string -> IO ()
aboutDialogSetTranslatorCredits :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> string -> IO ()
aboutDialogSetTranslatorCredits self
self string
translatorCredits =
  string -> (Ptr CChar -> IO ()) -> IO ()
forall a. string -> (Ptr CChar -> IO a) -> IO a
forall s a. GlibString s => s -> (Ptr CChar -> IO a) -> IO a
withUTFString string
translatorCredits ((Ptr CChar -> IO ()) -> IO ()) -> (Ptr CChar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
translatorCreditsPtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr CChar
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr CChar -> IO ()
gtk_about_dialog_set_translator_credits Ptr AboutDialog
argPtr1 Ptr CChar
arg2)
{-# LINE 394 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr CChar
translatorCreditsPtr


-- | Returns the pixbuf displayed as logo in the about dialog.
--
aboutDialogGetLogo :: AboutDialogClass self => self -> IO Pixbuf
 self
self =
  (ForeignPtr Pixbuf -> Pixbuf, FinalizerPtr Pixbuf)
-> IO (Ptr Pixbuf) -> IO Pixbuf
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr Pixbuf -> Pixbuf, FinalizerPtr Pixbuf)
forall {a}. (ForeignPtr Pixbuf -> Pixbuf, FinalizerPtr a)
mkPixbuf (IO (Ptr Pixbuf) -> IO Pixbuf) -> IO (Ptr Pixbuf) -> IO Pixbuf
forall a b. (a -> b) -> a -> b
$
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf))
-> (Ptr AboutDialog -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr Pixbuf)
gtk_about_dialog_get_logo Ptr AboutDialog
argPtr1)
{-# LINE 404 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)

-- | Sets the pixbuf to be displayed as logo in the about dialog. If it is
-- @Nothing@, the default window icon set with 'windowSetDefaultIcon' will be
-- used.
--
aboutDialogSetLogo :: AboutDialogClass self => self
 -> Maybe Pixbuf -- ^ @logo@ - a 'Pixbuf', or @Nothing@
 -> IO ()
 self
self Maybe Pixbuf
logo =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) (Pixbuf ForeignPtr Pixbuf
arg2) -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->ForeignPtr Pixbuf -> (Ptr Pixbuf -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Pixbuf
arg2 ((Ptr Pixbuf -> IO ()) -> IO ()) -> (Ptr Pixbuf -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Pixbuf
argPtr2 ->Ptr AboutDialog -> Ptr Pixbuf -> IO ()
gtk_about_dialog_set_logo Ptr AboutDialog
argPtr1 Ptr Pixbuf
argPtr2)
{-# LINE 415 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    (Pixbuf -> Maybe Pixbuf -> Pixbuf
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr Pixbuf -> Pixbuf
Pixbuf ForeignPtr Pixbuf
forall a. ForeignPtr a
nullForeignPtr) Maybe Pixbuf
logo)

-- | Returns the icon name displayed as logo in the about dialog.
--
aboutDialogGetLogoIconName :: (AboutDialogClass self, GlibString string) => self -> IO string
aboutDialogGetLogoIconName :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO string
aboutDialogGetLogoIconName self
self =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr AboutDialog -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO (Ptr CChar)
gtk_about_dialog_get_logo_icon_name Ptr AboutDialog
argPtr1)
{-# LINE 423 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
  IO (Ptr CChar) -> (Ptr CChar -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString

-- | Sets the pixbuf to be displayed as logo in the about dialog. If it is
-- @Nothing@, the default window icon set with 'windowSetDefaultIcon' will be
-- used.
--
aboutDialogSetLogoIconName :: (AboutDialogClass self, GlibString string) => self
 -> Maybe string -- ^ @iconName@ - an icon name, or @Nothing@
 -> IO ()
aboutDialogSetLogoIconName :: forall self string.
(AboutDialogClass self, GlibString string) =>
self -> Maybe string -> IO ()
aboutDialogSetLogoIconName self
self Maybe string
iconName =
  (string -> (Ptr CChar -> IO ()) -> IO ())
-> Maybe string -> (Ptr CChar -> IO ()) -> IO ()
forall a b c.
(a -> (Ptr b -> IO c) -> IO c)
-> Maybe a -> (Ptr b -> IO c) -> IO c
maybeWith string -> (Ptr CChar -> IO ()) -> IO ()
forall a. string -> (Ptr CChar -> IO a) -> IO a
forall s a. GlibString s => s -> (Ptr CChar -> IO a) -> IO a
withUTFString Maybe string
iconName ((Ptr CChar -> IO ()) -> IO ()) -> (Ptr CChar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
iconNamePtr ->
  (\(AboutDialog ForeignPtr AboutDialog
arg1) Ptr CChar
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> Ptr CChar -> IO ()
gtk_about_dialog_set_logo_icon_name Ptr AboutDialog
argPtr1 Ptr CChar
arg2)
{-# LINE 436 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    Ptr CChar
iconNamePtr


-- | Installs a global function to be called whenever the user activates an
-- email link in an about dialog.
--
-- Removed in Gtk3.
aboutDialogSetEmailHook :: GlibString string
 => (string -> IO ()) -- ^ @(\url -> ...)@ - a function to call when an email
                      -- link is activated.
 -> IO ()
aboutDialogSetEmailHook :: forall string. GlibString string => (string -> IO ()) -> IO ()
aboutDialogSetEmailHook string -> IO ()
func = do
  AboutDialogActivateLinkFunc
funcPtr <- (Ptr AboutDialog -> Ptr CChar -> Ptr () -> IO ())
-> IO AboutDialogActivateLinkFunc
mkAboutDialogActivateLinkFunc (\Ptr AboutDialog
_ Ptr CChar
linkPtr Ptr ()
_ -> do
    string
link <- Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString Ptr CChar
linkPtr
    string -> IO ()
func string
link
    )
  AboutDialogActivateLinkFunc
-> Ptr ()
-> FunPtr (Ptr () -> IO ())
-> IO AboutDialogActivateLinkFunc
gtk_about_dialog_set_email_hook
{-# LINE 454 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    funcPtr
    (AboutDialogActivateLinkFunc -> Ptr ()
forall a b. FunPtr a -> Ptr b
castFunPtrToPtr AboutDialogActivateLinkFunc
funcPtr)
    FunPtr (Ptr () -> IO ())
destroyFunPtr
  () -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()

-- | Installs a global function to be called whenever the user activates a URL
-- link in an about dialog.
--
-- Removed in Gtk3.
aboutDialogSetUrlHook ::GlibString string
 => (string -> IO ()) -- ^ @(\url -> ...)@ - a function to call when a URL link
                      -- is activated.
 -> IO ()
aboutDialogSetUrlHook :: forall string. GlibString string => (string -> IO ()) -> IO ()
aboutDialogSetUrlHook string -> IO ()
func = do
  AboutDialogActivateLinkFunc
funcPtr <- (Ptr AboutDialog -> Ptr CChar -> Ptr () -> IO ())
-> IO AboutDialogActivateLinkFunc
mkAboutDialogActivateLinkFunc (\Ptr AboutDialog
_ Ptr CChar
linkPtr Ptr ()
_ -> do
    string
link <- Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
peekUTFString Ptr CChar
linkPtr
    string -> IO ()
func string
link
    )
  AboutDialogActivateLinkFunc
-> Ptr ()
-> FunPtr (Ptr () -> IO ())
-> IO AboutDialogActivateLinkFunc
gtk_about_dialog_set_url_hook
{-# LINE 473 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    funcPtr
    (AboutDialogActivateLinkFunc -> Ptr ()
forall a b. FunPtr a -> Ptr b
castFunPtrToPtr AboutDialogActivateLinkFunc
funcPtr)
    FunPtr (Ptr () -> IO ())
destroyFunPtr
  () -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()

type AboutDialogActivateLinkFunc = FunPtr (((Ptr AboutDialog) -> ((Ptr CChar) -> ((Ptr ()) -> (IO ())))))
{-# LINE 479 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}

foreign import ccall "wrapper" mkAboutDialogActivateLinkFunc ::
  (Ptr AboutDialog -> CString -> Ptr () -> IO ()) -> IO AboutDialogActivateLinkFunc




-- | Returns whether the license text in @about@ is automatically wrapped.
--
-- * Available since Gtk+ version 2.8
--
aboutDialogGetWrapLicense :: AboutDialogClass self => self
 -> IO Bool -- ^ returns @True@ if the license text is wrapped
aboutDialogGetWrapLicense :: forall self. AboutDialogClass self => self -> IO Bool
aboutDialogGetWrapLicense self
self =
  (CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
  (\(AboutDialog ForeignPtr AboutDialog
arg1) -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO CInt) -> IO CInt)
-> (Ptr AboutDialog -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> IO CInt
gtk_about_dialog_get_wrap_license Ptr AboutDialog
argPtr1)
{-# LINE 495 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)

-- | Sets whether the license text in @about@ is automatically wrapped.
--
-- * Available since Gtk+ version 2.8
--
aboutDialogSetWrapLicense :: AboutDialogClass self => self
 -> Bool -- ^ @wrapLicense@ - whether to wrap the license
 -> IO ()
aboutDialogSetWrapLicense :: forall self. AboutDialogClass self => self -> Bool -> IO ()
aboutDialogSetWrapLicense self
self Bool
wrapLicense =
  (\(AboutDialog ForeignPtr AboutDialog
arg1) CInt
arg2 -> ForeignPtr AboutDialog -> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AboutDialog
arg1 ((Ptr AboutDialog -> IO ()) -> IO ())
-> (Ptr AboutDialog -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AboutDialog
argPtr1 ->Ptr AboutDialog -> CInt -> IO ()
gtk_about_dialog_set_wrap_license Ptr AboutDialog
argPtr1 CInt
arg2)
{-# LINE 506 "./Graphics/UI/Gtk/Windows/AboutDialog.chs" #-}
    (toAboutDialog self)
    (Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
wrapLicense)



--------------------
-- Attributes

-- | The name of the program. If this is not set, it defaults to
-- 'gGetApplicationName'.
--
aboutDialogName :: (AboutDialogClass self, GlibString string) => Attr self string
aboutDialogName :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self string
aboutDialogName = String -> Attr self string
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj string
newAttrFromStringProperty String
"name"

-- | The name of the program. If this is not set, it defaults to
-- 'gGetApplicationName'.
--

aboutDialogProgramName :: (AboutDialogClass self, GlibString string) => Attr self string
aboutDialogProgramName :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self string
aboutDialogProgramName = String -> Attr self string
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj string
newAttrFromStringProperty String
"program-name"





-- | The version of the program.
--
aboutDialogVersion :: (AboutDialogClass self, GlibString string) => Attr self string
aboutDialogVersion :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self string
aboutDialogVersion = String -> Attr self string
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj string
newAttrFromStringProperty String
"version"

-- | Copyright information for the program.
--
aboutDialogCopyright :: (AboutDialogClass self, GlibString string) => Attr self string
aboutDialogCopyright :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self string
aboutDialogCopyright = String -> Attr self string
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj string
newAttrFromStringProperty String
"copyright"

-- | Comments about the program. This string is displayed in a label in the
-- main dialog, thus it should be a short explanation of the main purpose of
-- the program, not a detailed list of features.
--
aboutDialogComments :: (AboutDialogClass self, GlibString string) => Attr self string
aboutDialogComments :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self string
aboutDialogComments = String -> Attr self string
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj string
newAttrFromStringProperty String
"comments"

-- | The license of the program. This string is displayed in a text view in a
-- secondary dialog, therefore it is fine to use a long multi-paragraph text.
-- Note that the text is only wrapped in the text view if the 'aboutDialogWrapLicense'
-- property is set to @True@; otherwise the text itself must contain the
-- intended linebreaks.
--
-- Default value: @Nothing@
--
aboutDialogLicense :: (AboutDialogClass self, GlibString string) => Attr self (Maybe string)
aboutDialogLicense :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self (Maybe string)
aboutDialogLicense = String -> Attr self (Maybe string)
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj (Maybe string)
newAttrFromMaybeStringProperty String
"license"

-- | The URL for the link to the website of the program. This should be a
-- string starting with \"http:\/\/.
--
aboutDialogWebsite :: (AboutDialogClass self, GlibString string) => Attr self string
aboutDialogWebsite :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self string
aboutDialogWebsite = String -> Attr self string
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj string
newAttrFromStringProperty String
"website"

-- | The label for the link to the website of the program. If this is not set,
-- it defaults to the URL specified in the website property.
--
aboutDialogWebsiteLabel :: (AboutDialogClass self, GlibString string) => Attr self string
aboutDialogWebsiteLabel :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self string
aboutDialogWebsiteLabel = String -> Attr self string
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj string
newAttrFromStringProperty String
"website-label"

-- | The authors of the program. Each string may
-- contain email addresses and URLs, which will be displayed as links, see the
-- introduction for more details.
--
aboutDialogAuthors :: (AboutDialogClass self, GlibString string) => Attr self [string]
aboutDialogAuthors :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self [string]
aboutDialogAuthors = (self -> IO [string])
-> (self -> [string] -> IO ())
-> ReadWriteAttr self [string] [string]
forall o a b.
(o -> IO a) -> (o -> b -> IO ()) -> ReadWriteAttr o a b
newAttr
  self -> IO [string]
forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO [string]
aboutDialogGetAuthors
  self -> [string] -> IO ()
forall self string.
(AboutDialogClass self, GlibString string) =>
self -> [string] -> IO ()
aboutDialogSetAuthors

-- | The people documenting the program.
-- Each string may contain email addresses and URLs, which will be displayed as
-- links, see the introduction for more details.
--
aboutDialogDocumenters :: (AboutDialogClass self, GlibString string) => Attr self [string]
aboutDialogDocumenters :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self [string]
aboutDialogDocumenters = (self -> IO [string])
-> (self -> [string] -> IO ())
-> ReadWriteAttr self [string] [string]
forall o a b.
(o -> IO a) -> (o -> b -> IO ()) -> ReadWriteAttr o a b
newAttr
  self -> IO [string]
forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO [string]
aboutDialogGetDocumenters
  self -> [string] -> IO ()
forall self string.
(AboutDialogClass self, GlibString string) =>
self -> [string] -> IO ()
aboutDialogSetDocumenters

-- | The people who contributed artwork to the program.
-- Each string may contain email addresses and URLs, which will be
-- displayed as links, see the introduction for more details.
--
aboutDialogArtists :: (AboutDialogClass self, GlibString string) => Attr self [string]
aboutDialogArtists :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self [string]
aboutDialogArtists = (self -> IO [string])
-> (self -> [string] -> IO ())
-> ReadWriteAttr self [string] [string]
forall o a b.
(o -> IO a) -> (o -> b -> IO ()) -> ReadWriteAttr o a b
newAttr
  self -> IO [string]
forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO [string]
aboutDialogGetArtists
  self -> [string] -> IO ()
forall self string.
(AboutDialogClass self, GlibString string) =>
self -> [string] -> IO ()
aboutDialogSetArtists

-- | Credits to the translators. This string should be marked as translatable.
-- The string may contain email addresses and URLs, which will be displayed as
-- links, see the introduction for more details.
--
aboutDialogTranslatorCredits :: (AboutDialogClass self, GlibString string) => Attr self string
aboutDialogTranslatorCredits :: forall self string.
(AboutDialogClass self, GlibString string) =>
Attr self string
aboutDialogTranslatorCredits = String -> Attr self string
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj string
newAttrFromStringProperty String
"translator-credits"

-- | A logo for the about box. If this is not set, it defaults to
-- 'windowGetDefaultIconList'.
--
aboutDialogLogo :: AboutDialogClass self => ReadWriteAttr self Pixbuf (Maybe Pixbuf)
 = (self -> IO Pixbuf)
-> (self -> Maybe Pixbuf -> IO ())
-> ReadWriteAttr self Pixbuf (Maybe Pixbuf)
forall o a b.
(o -> IO a) -> (o -> b -> IO ()) -> ReadWriteAttr o a b
newAttr
  self -> IO Pixbuf
forall self. AboutDialogClass self => self -> IO Pixbuf
aboutDialogGetLogo
  self -> Maybe Pixbuf -> IO ()
forall self. AboutDialogClass self => self -> Maybe Pixbuf -> IO ()
aboutDialogSetLogo

-- | A named icon to use as the logo for the about box. This property
-- overrides the logo property.
--
-- Default value: @Nothing@
--
aboutDialogLogoIconName :: (AboutDialogClass self, GlibString string) => ReadWriteAttr self string (Maybe string)
aboutDialogLogoIconName :: forall self string.
(AboutDialogClass self, GlibString string) =>
ReadWriteAttr self string (Maybe string)
aboutDialogLogoIconName = (self -> IO string)
-> (self -> Maybe string -> IO ())
-> ReadWriteAttr self string (Maybe string)
forall o a b.
(o -> IO a) -> (o -> b -> IO ()) -> ReadWriteAttr o a b
newAttr
  self -> IO string
forall self string.
(AboutDialogClass self, GlibString string) =>
self -> IO string
aboutDialogGetLogoIconName
  self -> Maybe string -> IO ()
forall self string.
(AboutDialogClass self, GlibString string) =>
self -> Maybe string -> IO ()
aboutDialogSetLogoIconName



-- | Whether to wrap the text in the license dialog.
--
-- Default value: @False@
--
aboutDialogWrapLicense :: AboutDialogClass self => Attr self Bool
aboutDialogWrapLicense :: forall self. AboutDialogClass self => Attr self Bool
aboutDialogWrapLicense = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"wrap-license"

foreign import ccall safe "gtk_about_dialog_new"
  gtk_about_dialog_new :: (IO (Ptr Widget))

foreign import ccall safe "gtk_about_dialog_get_program_name"
  gtk_about_dialog_get_program_name :: ((Ptr AboutDialog) -> (IO (Ptr CChar)))

foreign import ccall safe "gtk_about_dialog_set_program_name"
  gtk_about_dialog_set_program_name :: ((Ptr AboutDialog) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_version"
  gtk_about_dialog_get_version :: ((Ptr AboutDialog) -> (IO (Ptr CChar)))

foreign import ccall safe "gtk_about_dialog_set_version"
  gtk_about_dialog_set_version :: ((Ptr AboutDialog) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_copyright"
  gtk_about_dialog_get_copyright :: ((Ptr AboutDialog) -> (IO (Ptr CChar)))

foreign import ccall safe "gtk_about_dialog_set_copyright"
  gtk_about_dialog_set_copyright :: ((Ptr AboutDialog) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_comments"
  gtk_about_dialog_get_comments :: ((Ptr AboutDialog) -> (IO (Ptr CChar)))

foreign import ccall safe "gtk_about_dialog_set_comments"
  gtk_about_dialog_set_comments :: ((Ptr AboutDialog) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_license"
  gtk_about_dialog_get_license :: ((Ptr AboutDialog) -> (IO (Ptr CChar)))

foreign import ccall safe "gtk_about_dialog_set_license"
  gtk_about_dialog_set_license :: ((Ptr AboutDialog) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_website"
  gtk_about_dialog_get_website :: ((Ptr AboutDialog) -> (IO (Ptr CChar)))

foreign import ccall safe "gtk_about_dialog_set_website"
  gtk_about_dialog_set_website :: ((Ptr AboutDialog) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_website_label"
  gtk_about_dialog_get_website_label :: ((Ptr AboutDialog) -> (IO (Ptr CChar)))

foreign import ccall safe "gtk_about_dialog_set_website_label"
  gtk_about_dialog_set_website_label :: ((Ptr AboutDialog) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_set_authors"
  gtk_about_dialog_set_authors :: ((Ptr AboutDialog) -> ((Ptr (Ptr CChar)) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_authors"
  gtk_about_dialog_get_authors :: ((Ptr AboutDialog) -> (IO (Ptr (Ptr CChar))))

foreign import ccall safe "gtk_about_dialog_set_artists"
  gtk_about_dialog_set_artists :: ((Ptr AboutDialog) -> ((Ptr (Ptr CChar)) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_artists"
  gtk_about_dialog_get_artists :: ((Ptr AboutDialog) -> (IO (Ptr (Ptr CChar))))

foreign import ccall safe "gtk_about_dialog_set_documenters"
  gtk_about_dialog_set_documenters :: ((Ptr AboutDialog) -> ((Ptr (Ptr CChar)) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_documenters"
  gtk_about_dialog_get_documenters :: ((Ptr AboutDialog) -> (IO (Ptr (Ptr CChar))))

foreign import ccall safe "gtk_about_dialog_get_translator_credits"
  gtk_about_dialog_get_translator_credits :: ((Ptr AboutDialog) -> (IO (Ptr CChar)))

foreign import ccall safe "gtk_about_dialog_set_translator_credits"
  gtk_about_dialog_set_translator_credits :: ((Ptr AboutDialog) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_logo"
   :: ((Ptr AboutDialog) -> (IO (Ptr Pixbuf)))

foreign import ccall safe "gtk_about_dialog_set_logo"
   :: ((Ptr AboutDialog) -> ((Ptr Pixbuf) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_get_logo_icon_name"
  gtk_about_dialog_get_logo_icon_name :: ((Ptr AboutDialog) -> (IO (Ptr CChar)))

foreign import ccall safe "gtk_about_dialog_set_logo_icon_name"
  gtk_about_dialog_set_logo_icon_name :: ((Ptr AboutDialog) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "gtk_about_dialog_set_email_hook"
  gtk_about_dialog_set_email_hook :: ((FunPtr ((Ptr AboutDialog) -> ((Ptr CChar) -> ((Ptr ()) -> (IO ()))))) -> ((Ptr ()) -> ((FunPtr ((Ptr ()) -> (IO ()))) -> (IO (FunPtr ((Ptr AboutDialog) -> ((Ptr CChar) -> ((Ptr ()) -> (IO ())))))))))

foreign import ccall safe "gtk_about_dialog_set_url_hook"
  gtk_about_dialog_set_url_hook :: ((FunPtr ((Ptr AboutDialog) -> ((Ptr CChar) -> ((Ptr ()) -> (IO ()))))) -> ((Ptr ()) -> ((FunPtr ((Ptr ()) -> (IO ()))) -> (IO (FunPtr ((Ptr AboutDialog) -> ((Ptr CChar) -> ((Ptr ()) -> (IO ())))))))))

foreign import ccall safe "gtk_about_dialog_get_wrap_license"
  gtk_about_dialog_get_wrap_license :: ((Ptr AboutDialog) -> (IO CInt))

foreign import ccall safe "gtk_about_dialog_set_wrap_license"
  gtk_about_dialog_set_wrap_license :: ((Ptr AboutDialog) -> (CInt -> (IO ())))