2008-07-01 22:57:50 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
2004-07-12 16:38:04 +00:00
|
|
|
|
|
|
|
Copyright (C) 2001 CodeFactory AB
|
|
|
|
Copyright (C) 2001 Anders Carlsson <andersca@codefactory.se>
|
|
|
|
Copyright (C) 2003, 2004 Matthias Clasen <mclasen@redhat.com>
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public License as
|
|
|
|
published by the Free Software Foundation; either version 2 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
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2004-07-12 16:38:04 +00:00
|
|
|
|
|
|
|
Author: Anders Carlsson <andersca@codefactory.se>
|
|
|
|
*/
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
#ifndef __GTK_ABOUT_DIALOG_H__
|
|
|
|
#define __GTK_ABOUT_DIALOG_H__
|
|
|
|
|
2009-10-21 18:30:04 +00:00
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2008-05-28 15:07:04 +00:00
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2004-07-12 16:38:04 +00:00
|
|
|
#include <gtk/gtkdialog.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_ABOUT_DIALOG (gtk_about_dialog_get_type ())
|
|
|
|
#define GTK_ABOUT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialog))
|
|
|
|
#define GTK_IS_ABOUT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ABOUT_DIALOG))
|
|
|
|
|
|
|
|
typedef struct _GtkAboutDialog GtkAboutDialog;
|
|
|
|
|
2010-08-10 04:00:15 +00:00
|
|
|
/**
|
|
|
|
* GtkLicense:
|
|
|
|
* @GTK_LICENSE_UNKNOWN: No license specified
|
|
|
|
* @GTK_LICENSE_CUSTOM: A license text is going to be specified by the
|
|
|
|
* developer
|
2013-12-16 16:49:02 +00:00
|
|
|
* @GTK_LICENSE_GPL_2_0: The GNU General Public License, version 2.0 or later
|
|
|
|
* @GTK_LICENSE_GPL_3_0: The GNU General Public License, version 3.0 or later
|
|
|
|
* @GTK_LICENSE_LGPL_2_1: The GNU Lesser General Public License, version 2.1 or later
|
|
|
|
* @GTK_LICENSE_LGPL_3_0: The GNU Lesser General Public License, version 3.0 or later
|
2010-08-10 04:00:15 +00:00
|
|
|
* @GTK_LICENSE_BSD: The BSD standard license
|
|
|
|
* @GTK_LICENSE_MIT_X11: The MIT/X11 standard license
|
|
|
|
* @GTK_LICENSE_ARTISTIC: The Artistic License, version 2.0
|
2018-02-05 19:13:20 +00:00
|
|
|
* @GTK_LICENSE_GPL_2_0_ONLY: The GNU General Public License, version 2.0 only
|
|
|
|
* @GTK_LICENSE_GPL_3_0_ONLY: The GNU General Public License, version 3.0 only
|
|
|
|
* @GTK_LICENSE_LGPL_2_1_ONLY: The GNU Lesser General Public License, version 2.1 only
|
|
|
|
* @GTK_LICENSE_LGPL_3_0_ONLY: The GNU Lesser General Public License, version 3.0 only
|
|
|
|
* @GTK_LICENSE_AGPL_3_0: The GNU Affero General Public License, version 3.0 or later
|
|
|
|
* @GTK_LICENSE_AGPL_3_0_ONLY: The GNU Affero General Public License, version 3.0 only
|
2010-08-10 04:00:15 +00:00
|
|
|
*
|
|
|
|
* The type of license for an application.
|
|
|
|
*
|
|
|
|
* This enumeration can be expanded at later date.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GTK_LICENSE_UNKNOWN,
|
|
|
|
GTK_LICENSE_CUSTOM,
|
|
|
|
|
|
|
|
GTK_LICENSE_GPL_2_0,
|
|
|
|
GTK_LICENSE_GPL_3_0,
|
|
|
|
|
|
|
|
GTK_LICENSE_LGPL_2_1,
|
|
|
|
GTK_LICENSE_LGPL_3_0,
|
|
|
|
|
|
|
|
GTK_LICENSE_BSD,
|
|
|
|
GTK_LICENSE_MIT_X11,
|
|
|
|
|
2013-12-16 16:06:24 +00:00
|
|
|
GTK_LICENSE_ARTISTIC,
|
|
|
|
|
|
|
|
GTK_LICENSE_GPL_2_0_ONLY,
|
|
|
|
GTK_LICENSE_GPL_3_0_ONLY,
|
|
|
|
GTK_LICENSE_LGPL_2_1_ONLY,
|
2016-03-25 12:38:07 +00:00
|
|
|
GTK_LICENSE_LGPL_3_0_ONLY,
|
|
|
|
|
2018-01-23 13:49:31 +00:00
|
|
|
GTK_LICENSE_AGPL_3_0,
|
2020-04-11 15:49:09 +00:00
|
|
|
GTK_LICENSE_AGPL_3_0_ONLY,
|
|
|
|
|
|
|
|
GTK_LICENSE_BSD_3,
|
|
|
|
GTK_LICENSE_APACHE_2_0,
|
|
|
|
GTK_LICENSE_MPL_2_0
|
2010-08-10 04:00:15 +00:00
|
|
|
} GtkLicense;
|
|
|
|
|
2004-07-12 16:38:04 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
GType gtk_about_dialog_get_type (void) G_GNUC_CONST;
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
GtkWidget *gtk_about_dialog_new (void);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_show_about_dialog (GtkWindow *parent,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *first_property_name,
|
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar * gtk_about_dialog_get_program_name (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-05-14 18:33:53 +00:00
|
|
|
void gtk_about_dialog_set_program_name (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *name);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar * gtk_about_dialog_get_version (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_version (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *version);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar * gtk_about_dialog_get_copyright (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_copyright (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *copyright);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar * gtk_about_dialog_get_comments (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_comments (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *comments);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar * gtk_about_dialog_get_license (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_license (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *license);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-08-10 04:00:15 +00:00
|
|
|
void gtk_about_dialog_set_license_type (GtkAboutDialog *about,
|
|
|
|
GtkLicense license_type);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-08-10 04:00:15 +00:00
|
|
|
GtkLicense gtk_about_dialog_get_license_type (GtkAboutDialog *about);
|
2005-07-05 14:53:37 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-07-05 14:53:37 +00:00
|
|
|
gboolean gtk_about_dialog_get_wrap_license (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-07-05 14:53:37 +00:00
|
|
|
void gtk_about_dialog_set_wrap_license (GtkAboutDialog *about,
|
|
|
|
gboolean wrap_license);
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-30 04:12:42 +00:00
|
|
|
const gchar * gtk_about_dialog_get_system_information (GtkAboutDialog *about);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_about_dialog_set_system_information (GtkAboutDialog *about,
|
|
|
|
const gchar *system_information);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar * gtk_about_dialog_get_website (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_website (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *website);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar * gtk_about_dialog_get_website_label (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_website_label (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *website_label);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar* const * gtk_about_dialog_get_authors (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_authors (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar **authors);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar* const * gtk_about_dialog_get_documenters (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_documenters (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar **documenters);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar* const * gtk_about_dialog_get_artists (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_artists (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar **artists);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar * gtk_about_dialog_get_translator_credits (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_translator_credits (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *translator_credits);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-02-18 04:05:40 +00:00
|
|
|
GdkPaintable *gtk_about_dialog_get_logo (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-12 16:38:04 +00:00
|
|
|
void gtk_about_dialog_set_logo (GtkAboutDialog *about,
|
2018-02-18 04:05:40 +00:00
|
|
|
GdkPaintable *logo);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
const gchar * gtk_about_dialog_get_logo_icon_name (GtkAboutDialog *about);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-10-25 18:41:11 +00:00
|
|
|
void gtk_about_dialog_set_logo_icon_name (GtkAboutDialog *about,
|
2010-09-22 01:55:05 +00:00
|
|
|
const gchar *icon_name);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2012-01-25 23:21:47 +00:00
|
|
|
void gtk_about_dialog_add_credit_section (GtkAboutDialog *about,
|
|
|
|
const gchar *section_name,
|
|
|
|
const gchar **people);
|
2004-07-12 16:38:04 +00:00
|
|
|
|
2015-11-10 14:08:07 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAboutDialog, g_object_unref)
|
|
|
|
|
2004-07-12 16:38:04 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_ABOUT_DIALOG_H__ */
|
|
|
|
|
|
|
|
|