/* about-dialog.c generated by valac 0.56.19, the Vala compiler
 * generated from about-dialog.vala, do not modify */

/*
 * Copyright (c) 2013-2025 focus-timer contributors
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#include "ft_ui.h"
#include <adwaita.h>
#include <config.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

#define _g_free0(var) (var = (g_free (var), NULL))

static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);

AdwAboutDialog*
ft_create_about_dialog (void)
{
	AdwAboutDialog* about_dialog = NULL;
	AdwAboutDialog* _tmp0_;
	AdwAboutDialog* _tmp1_;
	AdwAboutDialog* _tmp2_;
	const gchar* _tmp3_;
	AdwAboutDialog* _tmp4_;
	AdwAboutDialog* _tmp5_;
	AdwAboutDialog* _tmp6_;
	AdwAboutDialog* _tmp7_;
	AdwAboutDialog* _tmp8_;
	AdwAboutDialog* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gchar** _tmp12_;
	gchar** _tmp13_;
	gint _tmp13__length1;
	AdwAboutDialog* _tmp14_;
	AdwAboutDialog* _tmp15_;
	gchar* translator_credits = NULL;
	gchar* _tmp16_;
	const gchar* _tmp17_;
	AdwAboutDialog* _tmp20_;
	AdwAboutDialog* result;
	_tmp0_ = (AdwAboutDialog*) adw_about_dialog_new ();
	g_object_ref_sink (_tmp0_);
	about_dialog = _tmp0_;
	_tmp1_ = about_dialog;
	adw_about_dialog_set_application_icon (_tmp1_, APPLICATION_ID);
	_tmp2_ = about_dialog;
	_tmp3_ = g_get_application_name ();
	adw_about_dialog_set_application_name (_tmp2_, _tmp3_);
	_tmp4_ = about_dialog;
	adw_about_dialog_set_version (_tmp4_, PACKAGE_VERSION);
	_tmp5_ = about_dialog;
	adw_about_dialog_set_website (_tmp5_, PACKAGE_WEBSITE);
	_tmp6_ = about_dialog;
	adw_about_dialog_set_issue_url (_tmp6_, PACKAGE_ISSUE_URL);
	_tmp7_ = about_dialog;
	adw_about_dialog_set_support_url (_tmp7_, PACKAGE_SUPPORT_URL);
	_tmp8_ = about_dialog;
	adw_about_dialog_set_developer_name (_tmp8_, "Kamil Prusko");
	_tmp9_ = about_dialog;
	_tmp10_ = g_strdup ("Kamil Prusko <kamilprusko@gmail.com>");
	_tmp11_ = g_strdup ("Arun Mahapatra <pratikarun@gmail.com>");
	_tmp12_ = g_new0 (gchar*, 2 + 1);
	_tmp12_[0] = _tmp10_;
	_tmp12_[1] = _tmp11_;
	_tmp13_ = _tmp12_;
	_tmp13__length1 = 2;
	adw_about_dialog_set_developers (_tmp9_, _tmp13_);
	_tmp13_ = (_vala_array_free (_tmp13_, _tmp13__length1, (GDestroyNotify) g_free), NULL);
	_tmp14_ = about_dialog;
	adw_about_dialog_set_copyright (_tmp14_, "\xc2\xa9 2011-2026 Arun Mahapatra, Kamil Prusko");
	_tmp15_ = about_dialog;
	adw_about_dialog_set_license_type (_tmp15_, GTK_LICENSE_GPL_3_0);
	_tmp16_ = g_strdup (_ ("translator-credits"));
	translator_credits = _tmp16_;
	_tmp17_ = translator_credits;
	if (g_strcmp0 (_tmp17_, "translator-credits") != 0) {
		AdwAboutDialog* _tmp18_;
		const gchar* _tmp19_;
		_tmp18_ = about_dialog;
		_tmp19_ = translator_credits;
		adw_about_dialog_set_translator_credits (_tmp18_, _tmp19_);
	}
	_tmp20_ = about_dialog;
	adw_about_dialog_add_link (_tmp20_, _ ("Donate"), PACKAGE_DONATE_URL);
	result = about_dialog;
	_g_free0 (translator_credits);
	return result;
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}

static void
_vala_array_free (gpointer array,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

