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

#include <adwaita.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <float.h>
#include <math.h>
#include <pango/pango.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
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG (proton_plus_widgets_description_dialog_get_type ())
#define PROTON_PLUS_WIDGETS_DESCRIPTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG, ProtonPlusWidgetsDescriptionDialog))
#define PROTON_PLUS_WIDGETS_DESCRIPTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG, ProtonPlusWidgetsDescriptionDialogClass))
#define PROTON_PLUS_WIDGETS_IS_DESCRIPTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG))
#define PROTON_PLUS_WIDGETS_IS_DESCRIPTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG))
#define PROTON_PLUS_WIDGETS_DESCRIPTION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG, ProtonPlusWidgetsDescriptionDialogClass))

typedef struct _ProtonPlusWidgetsDescriptionDialog ProtonPlusWidgetsDescriptionDialog;
typedef struct _ProtonPlusWidgetsDescriptionDialogClass ProtonPlusWidgetsDescriptionDialogClass;
typedef struct _ProtonPlusWidgetsDescriptionDialogPrivate ProtonPlusWidgetsDescriptionDialogPrivate;

#define PROTON_PLUS_MODELS_TYPE_BASE_RELEASE (proton_plus_models_base_release_get_type ())
#define PROTON_PLUS_MODELS_BASE_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseRelease))
#define PROTON_PLUS_MODELS_BASE_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseReleaseClass))
#define PROTON_PLUS_MODELS_IS_BASE_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE))
#define PROTON_PLUS_MODELS_IS_BASE_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE))
#define PROTON_PLUS_MODELS_BASE_RELEASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseReleaseClass))

typedef struct _ProtonPlusModelsBaseRelease ProtonPlusModelsBaseRelease;
typedef struct _ProtonPlusModelsBaseReleaseClass ProtonPlusModelsBaseReleaseClass;

#define PROTON_PLUS_MODELS_TYPE_RELEASE (proton_plus_models_release_get_type ())
#define PROTON_PLUS_MODELS_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsRelease))
#define PROTON_PLUS_MODELS_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsReleaseClass))
#define PROTON_PLUS_MODELS_IS_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE))
#define PROTON_PLUS_MODELS_IS_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_RELEASE))
#define PROTON_PLUS_MODELS_RELEASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsReleaseClass))

typedef struct _ProtonPlusModelsRelease ProtonPlusModelsRelease;
typedef struct _ProtonPlusModelsReleaseClass ProtonPlusModelsReleaseClass;
enum  {
	PROTON_PLUS_WIDGETS_DESCRIPTION_DIALOG_0_PROPERTY,
	PROTON_PLUS_WIDGETS_DESCRIPTION_DIALOG_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_description_dialog_properties[PROTON_PLUS_WIDGETS_DESCRIPTION_DIALOG_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusWidgetsDescriptionDialog {
	AdwDialog parent_instance;
	ProtonPlusWidgetsDescriptionDialogPrivate * priv;
};

struct _ProtonPlusWidgetsDescriptionDialogClass {
	AdwDialogClass parent_class;
};

struct _ProtonPlusWidgetsDescriptionDialogPrivate {
	ProtonPlusModelsRelease* _release;
	AdwToolbarView* _toolbar_view;
	AdwWindowTitle* _window_title;
	AdwButtonContent* _web_button_content;
	GtkButton* _web_button;
	AdwHeaderBar* _header_bar;
	GtkScrolledWindow* _scrolled_window;
	GtkLabel* _description_label;
};

static gint ProtonPlusWidgetsDescriptionDialog_private_offset;
static gpointer proton_plus_widgets_description_dialog_parent_class = NULL;

VALA_EXTERN GType proton_plus_widgets_description_dialog_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsDescriptionDialog, g_object_unref)
VALA_EXTERN GType proton_plus_models_base_release_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsBaseRelease, g_object_unref)
VALA_EXTERN GType proton_plus_models_release_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRelease, g_object_unref)
VALA_EXTERN ProtonPlusWidgetsDescriptionDialog* proton_plus_widgets_description_dialog_new (ProtonPlusModelsRelease* release);
VALA_EXTERN ProtonPlusWidgetsDescriptionDialog* proton_plus_widgets_description_dialog_construct (GType object_type,
                                                                                      ProtonPlusModelsRelease* release);
static void proton_plus_widgets_description_dialog_set_release (ProtonPlusWidgetsDescriptionDialog* self,
                                                         ProtonPlusModelsRelease* value);
static AdwWindowTitle* proton_plus_widgets_description_dialog_get_window_title (ProtonPlusWidgetsDescriptionDialog* self);
VALA_EXTERN const gchar* proton_plus_models_base_release_get_displayed_title (ProtonPlusModelsBaseRelease* self);
static GtkLabel* proton_plus_widgets_description_dialog_get_description_label (ProtonPlusWidgetsDescriptionDialog* self);
VALA_EXTERN const gchar* proton_plus_models_base_release_get_description (ProtonPlusModelsBaseRelease* self);
static void proton_plus_widgets_description_dialog_web_button_clicked (ProtonPlusWidgetsDescriptionDialog* self);
VALA_EXTERN void proton_plus_utils_system_open_uri (const gchar* uri);
static ProtonPlusModelsRelease* proton_plus_widgets_description_dialog_get_release (ProtonPlusWidgetsDescriptionDialog* self);
VALA_EXTERN const gchar* proton_plus_models_base_release_get_page_url (ProtonPlusModelsBaseRelease* self);
static AdwToolbarView* proton_plus_widgets_description_dialog_get_toolbar_view (ProtonPlusWidgetsDescriptionDialog* self);
static void proton_plus_widgets_description_dialog_set_toolbar_view (ProtonPlusWidgetsDescriptionDialog* self,
                                                              AdwToolbarView* value);
static void proton_plus_widgets_description_dialog_set_window_title (ProtonPlusWidgetsDescriptionDialog* self,
                                                              AdwWindowTitle* value);
static AdwButtonContent* proton_plus_widgets_description_dialog_get_web_button_content (ProtonPlusWidgetsDescriptionDialog* self);
static void proton_plus_widgets_description_dialog_set_web_button_content (ProtonPlusWidgetsDescriptionDialog* self,
                                                                    AdwButtonContent* value);
static GtkButton* proton_plus_widgets_description_dialog_get_web_button (ProtonPlusWidgetsDescriptionDialog* self);
static void proton_plus_widgets_description_dialog_set_web_button (ProtonPlusWidgetsDescriptionDialog* self,
                                                            GtkButton* value);
static AdwHeaderBar* proton_plus_widgets_description_dialog_get_header_bar (ProtonPlusWidgetsDescriptionDialog* self);
static void proton_plus_widgets_description_dialog_set_header_bar (ProtonPlusWidgetsDescriptionDialog* self,
                                                            AdwHeaderBar* value);
static GtkScrolledWindow* proton_plus_widgets_description_dialog_get_scrolled_window (ProtonPlusWidgetsDescriptionDialog* self);
static void proton_plus_widgets_description_dialog_set_scrolled_window (ProtonPlusWidgetsDescriptionDialog* self,
                                                                 GtkScrolledWindow* value);
static void proton_plus_widgets_description_dialog_set_description_label (ProtonPlusWidgetsDescriptionDialog* self,
                                                                   GtkLabel* value);
static GObject * proton_plus_widgets_description_dialog_constructor (GType type,
                                                              guint n_construct_properties,
                                                              GObjectConstructParam * construct_properties);
static void _proton_plus_widgets_description_dialog_web_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                                    gpointer self);
static void proton_plus_widgets_description_dialog_finalize (GObject * obj);
static GType proton_plus_widgets_description_dialog_get_type_once (void);
static void _vala_proton_plus_widgets_description_dialog_get_property (GObject * object,
                                                                guint property_id,
                                                                GValue * value,
                                                                GParamSpec * pspec);
static void _vala_proton_plus_widgets_description_dialog_set_property (GObject * object,
                                                                guint property_id,
                                                                const GValue * value,
                                                                GParamSpec * pspec);

static inline gpointer
proton_plus_widgets_description_dialog_get_instance_private (ProtonPlusWidgetsDescriptionDialog* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsDescriptionDialog_private_offset);
}

ProtonPlusWidgetsDescriptionDialog*
proton_plus_widgets_description_dialog_construct (GType object_type,
                                                  ProtonPlusModelsRelease* release)
{
	ProtonPlusWidgetsDescriptionDialog * self = NULL;
	AdwWindowTitle* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	GtkLabel* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	g_return_val_if_fail (release != NULL, NULL);
	self = (ProtonPlusWidgetsDescriptionDialog*) g_object_new (object_type, NULL);
	proton_plus_widgets_description_dialog_set_release (self, release);
	_tmp0_ = self->priv->_window_title;
	_tmp1_ = proton_plus_models_base_release_get_displayed_title ((ProtonPlusModelsBaseRelease*) release);
	_tmp2_ = _tmp1_;
	adw_window_title_set_subtitle (_tmp0_, _tmp2_);
	_tmp3_ = self->priv->_description_label;
	_tmp4_ = proton_plus_models_base_release_get_description ((ProtonPlusModelsBaseRelease*) release);
	_tmp5_ = _tmp4_;
	gtk_label_set_label (_tmp3_, _tmp5_);
	return self;
}

ProtonPlusWidgetsDescriptionDialog*
proton_plus_widgets_description_dialog_new (ProtonPlusModelsRelease* release)
{
	return proton_plus_widgets_description_dialog_construct (PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG, release);
}

static void
proton_plus_widgets_description_dialog_web_button_clicked (ProtonPlusWidgetsDescriptionDialog* self)
{
	ProtonPlusModelsRelease* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->_release;
	_tmp1_ = proton_plus_models_base_release_get_page_url ((ProtonPlusModelsBaseRelease*) _tmp0_);
	_tmp2_ = _tmp1_;
	proton_plus_utils_system_open_uri (_tmp2_);
}

static ProtonPlusModelsRelease*
proton_plus_widgets_description_dialog_get_release (ProtonPlusWidgetsDescriptionDialog* self)
{
	ProtonPlusModelsRelease* result;
	ProtonPlusModelsRelease* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_release;
	result = _tmp0_;
	return result;
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

static void
proton_plus_widgets_description_dialog_set_release (ProtonPlusWidgetsDescriptionDialog* self,
                                                    ProtonPlusModelsRelease* value)
{
	ProtonPlusModelsRelease* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_release);
	self->priv->_release = _tmp0_;
}

static AdwToolbarView*
proton_plus_widgets_description_dialog_get_toolbar_view (ProtonPlusWidgetsDescriptionDialog* self)
{
	AdwToolbarView* result;
	AdwToolbarView* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_toolbar_view;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_description_dialog_set_toolbar_view (ProtonPlusWidgetsDescriptionDialog* self,
                                                         AdwToolbarView* value)
{
	AdwToolbarView* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_toolbar_view);
	self->priv->_toolbar_view = _tmp0_;
}

static AdwWindowTitle*
proton_plus_widgets_description_dialog_get_window_title (ProtonPlusWidgetsDescriptionDialog* self)
{
	AdwWindowTitle* result;
	AdwWindowTitle* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_window_title;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_description_dialog_set_window_title (ProtonPlusWidgetsDescriptionDialog* self,
                                                         AdwWindowTitle* value)
{
	AdwWindowTitle* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_window_title);
	self->priv->_window_title = _tmp0_;
}

static AdwButtonContent*
proton_plus_widgets_description_dialog_get_web_button_content (ProtonPlusWidgetsDescriptionDialog* self)
{
	AdwButtonContent* result;
	AdwButtonContent* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_web_button_content;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_description_dialog_set_web_button_content (ProtonPlusWidgetsDescriptionDialog* self,
                                                               AdwButtonContent* value)
{
	AdwButtonContent* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_web_button_content);
	self->priv->_web_button_content = _tmp0_;
}

static GtkButton*
proton_plus_widgets_description_dialog_get_web_button (ProtonPlusWidgetsDescriptionDialog* self)
{
	GtkButton* result;
	GtkButton* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_web_button;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_description_dialog_set_web_button (ProtonPlusWidgetsDescriptionDialog* self,
                                                       GtkButton* value)
{
	GtkButton* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_web_button);
	self->priv->_web_button = _tmp0_;
}

static AdwHeaderBar*
proton_plus_widgets_description_dialog_get_header_bar (ProtonPlusWidgetsDescriptionDialog* self)
{
	AdwHeaderBar* result;
	AdwHeaderBar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_header_bar;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_description_dialog_set_header_bar (ProtonPlusWidgetsDescriptionDialog* self,
                                                       AdwHeaderBar* value)
{
	AdwHeaderBar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_header_bar);
	self->priv->_header_bar = _tmp0_;
}

static GtkScrolledWindow*
proton_plus_widgets_description_dialog_get_scrolled_window (ProtonPlusWidgetsDescriptionDialog* self)
{
	GtkScrolledWindow* result;
	GtkScrolledWindow* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_scrolled_window;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_description_dialog_set_scrolled_window (ProtonPlusWidgetsDescriptionDialog* self,
                                                            GtkScrolledWindow* value)
{
	GtkScrolledWindow* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_scrolled_window);
	self->priv->_scrolled_window = _tmp0_;
}

static GtkLabel*
proton_plus_widgets_description_dialog_get_description_label (ProtonPlusWidgetsDescriptionDialog* self)
{
	GtkLabel* result;
	GtkLabel* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_description_label;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_description_dialog_set_description_label (ProtonPlusWidgetsDescriptionDialog* self,
                                                              GtkLabel* value)
{
	GtkLabel* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_description_label);
	self->priv->_description_label = _tmp0_;
}

static void
_proton_plus_widgets_description_dialog_web_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                               gpointer self)
{
	proton_plus_widgets_description_dialog_web_button_clicked ((ProtonPlusWidgetsDescriptionDialog*) self);
}

static GObject *
proton_plus_widgets_description_dialog_constructor (GType type,
                                                    guint n_construct_properties,
                                                    GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	ProtonPlusWidgetsDescriptionDialog * self;
	AdwWindowTitle* _tmp0_;
	AdwWindowTitle* _tmp1_;
	AdwButtonContent* _tmp2_;
	AdwButtonContent* _tmp3_;
	AdwButtonContent* _tmp4_;
	AdwButtonContent* _tmp5_;
	GtkButton* _tmp6_;
	GtkButton* _tmp7_;
	GtkButton* _tmp8_;
	AdwButtonContent* _tmp9_;
	GtkButton* _tmp10_;
	GtkButton* _tmp11_;
	AdwHeaderBar* _tmp12_;
	AdwHeaderBar* _tmp13_;
	AdwHeaderBar* _tmp14_;
	GtkButton* _tmp15_;
	AdwHeaderBar* _tmp16_;
	AdwWindowTitle* _tmp17_;
	GtkLabel* _tmp18_;
	GtkLabel* _tmp19_;
	GtkLabel* _tmp20_;
	GtkLabel* _tmp21_;
	GtkLabel* _tmp22_;
	GtkLabel* _tmp23_;
	GtkLabel* _tmp24_;
	GtkLabel* _tmp25_;
	GtkScrolledWindow* _tmp26_;
	GtkScrolledWindow* _tmp27_;
	GtkScrolledWindow* _tmp28_;
	GtkLabel* _tmp29_;
	GtkScrolledWindow* _tmp30_;
	GtkScrolledWindow* _tmp31_;
	GtkScrolledWindow* _tmp32_;
	GtkScrolledWindow* _tmp33_;
	GtkScrolledWindow* _tmp34_;
	GtkScrolledWindow* _tmp35_;
	GtkScrolledWindow* _tmp36_;
	AdwToolbarView* _tmp37_;
	AdwToolbarView* _tmp38_;
	AdwToolbarView* _tmp39_;
	AdwHeaderBar* _tmp40_;
	AdwToolbarView* _tmp41_;
	GtkScrolledWindow* _tmp42_;
	AdwToolbarView* _tmp43_;
	parent_class = G_OBJECT_CLASS (proton_plus_widgets_description_dialog_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG, ProtonPlusWidgetsDescriptionDialog);
	adw_dialog_set_title ((AdwDialog*) self, _ ("More information"));
	adw_dialog_set_content_width ((AdwDialog*) self, 750);
	adw_dialog_set_content_height ((AdwDialog*) self, 450);
	_tmp0_ = (AdwWindowTitle*) adw_window_title_new (_ ("More information"), "");
	g_object_ref_sink (_tmp0_);
	_tmp1_ = _tmp0_;
	proton_plus_widgets_description_dialog_set_window_title (self, _tmp1_);
	_g_object_unref0 (_tmp1_);
	_tmp2_ = (AdwButtonContent*) adw_button_content_new ();
	g_object_ref_sink (_tmp2_);
	_tmp3_ = _tmp2_;
	proton_plus_widgets_description_dialog_set_web_button_content (self, _tmp3_);
	_g_object_unref0 (_tmp3_);
	_tmp4_ = self->priv->_web_button_content;
	adw_button_content_set_icon_name (_tmp4_, "world-www-symbolic");
	_tmp5_ = self->priv->_web_button_content;
	adw_button_content_set_label (_tmp5_, _ ("Open"));
	_tmp6_ = (GtkButton*) gtk_button_new ();
	g_object_ref_sink (_tmp6_);
	_tmp7_ = _tmp6_;
	proton_plus_widgets_description_dialog_set_web_button (self, _tmp7_);
	_g_object_unref0 (_tmp7_);
	_tmp8_ = self->priv->_web_button;
	_tmp9_ = self->priv->_web_button_content;
	gtk_button_set_child (_tmp8_, (GtkWidget*) _tmp9_);
	_tmp10_ = self->priv->_web_button;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp10_, _ ("Open in your web browser"));
	_tmp11_ = self->priv->_web_button;
	g_signal_connect_object (_tmp11_, "clicked", (GCallback) _proton_plus_widgets_description_dialog_web_button_clicked_gtk_button_clicked, self, 0);
	_tmp12_ = (AdwHeaderBar*) adw_header_bar_new ();
	g_object_ref_sink (_tmp12_);
	_tmp13_ = _tmp12_;
	proton_plus_widgets_description_dialog_set_header_bar (self, _tmp13_);
	_g_object_unref0 (_tmp13_);
	_tmp14_ = self->priv->_header_bar;
	_tmp15_ = self->priv->_web_button;
	adw_header_bar_pack_start (_tmp14_, (GtkWidget*) _tmp15_);
	_tmp16_ = self->priv->_header_bar;
	_tmp17_ = self->priv->_window_title;
	adw_header_bar_set_title_widget (_tmp16_, (GtkWidget*) _tmp17_);
	_tmp18_ = (GtkLabel*) gtk_label_new (NULL);
	g_object_ref_sink (_tmp18_);
	_tmp19_ = _tmp18_;
	proton_plus_widgets_description_dialog_set_description_label (self, _tmp19_);
	_g_object_unref0 (_tmp19_);
	_tmp20_ = self->priv->_description_label;
	gtk_widget_set_valign ((GtkWidget*) _tmp20_, GTK_ALIGN_START);
	_tmp21_ = self->priv->_description_label;
	gtk_widget_set_halign ((GtkWidget*) _tmp21_, GTK_ALIGN_START);
	_tmp22_ = self->priv->_description_label;
	gtk_label_set_wrap (_tmp22_, TRUE);
	_tmp23_ = self->priv->_description_label;
	gtk_label_set_selectable (_tmp23_, TRUE);
	_tmp24_ = self->priv->_description_label;
	gtk_label_set_xalign (_tmp24_, (gfloat) 0);
	_tmp25_ = self->priv->_description_label;
	gtk_label_set_wrap_mode (_tmp25_, PANGO_WRAP_WORD_CHAR);
	_tmp26_ = (GtkScrolledWindow*) gtk_scrolled_window_new ();
	g_object_ref_sink (_tmp26_);
	_tmp27_ = _tmp26_;
	proton_plus_widgets_description_dialog_set_scrolled_window (self, _tmp27_);
	_g_object_unref0 (_tmp27_);
	_tmp28_ = self->priv->_scrolled_window;
	_tmp29_ = self->priv->_description_label;
	gtk_scrolled_window_set_child (_tmp28_, (GtkWidget*) _tmp29_);
	_tmp30_ = self->priv->_scrolled_window;
	gtk_scrolled_window_set_policy (_tmp30_, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
	_tmp31_ = self->priv->_scrolled_window;
	gtk_widget_add_css_class ((GtkWidget*) _tmp31_, "card");
	_tmp32_ = self->priv->_scrolled_window;
	gtk_widget_add_css_class ((GtkWidget*) _tmp32_, "p-10");
	_tmp33_ = self->priv->_scrolled_window;
	gtk_widget_set_margin_top ((GtkWidget*) _tmp33_, 7);
	_tmp34_ = self->priv->_scrolled_window;
	gtk_widget_set_margin_bottom ((GtkWidget*) _tmp34_, 12);
	_tmp35_ = self->priv->_scrolled_window;
	gtk_widget_set_margin_start ((GtkWidget*) _tmp35_, 12);
	_tmp36_ = self->priv->_scrolled_window;
	gtk_widget_set_margin_end ((GtkWidget*) _tmp36_, 12);
	_tmp37_ = (AdwToolbarView*) adw_toolbar_view_new ();
	g_object_ref_sink (_tmp37_);
	_tmp38_ = _tmp37_;
	proton_plus_widgets_description_dialog_set_toolbar_view (self, _tmp38_);
	_g_object_unref0 (_tmp38_);
	_tmp39_ = self->priv->_toolbar_view;
	_tmp40_ = self->priv->_header_bar;
	adw_toolbar_view_add_top_bar (_tmp39_, (GtkWidget*) _tmp40_);
	_tmp41_ = self->priv->_toolbar_view;
	_tmp42_ = self->priv->_scrolled_window;
	adw_toolbar_view_set_content (_tmp41_, (GtkWidget*) _tmp42_);
	_tmp43_ = self->priv->_toolbar_view;
	adw_dialog_set_child ((AdwDialog*) self, (GtkWidget*) _tmp43_);
	return obj;
}

static void
proton_plus_widgets_description_dialog_class_init (ProtonPlusWidgetsDescriptionDialogClass * klass,
                                                   gpointer klass_data)
{
	proton_plus_widgets_description_dialog_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsDescriptionDialog_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_description_dialog_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_description_dialog_set_property;
	G_OBJECT_CLASS (klass)->constructor = proton_plus_widgets_description_dialog_constructor;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_description_dialog_finalize;
}

static void
proton_plus_widgets_description_dialog_instance_init (ProtonPlusWidgetsDescriptionDialog * self,
                                                      gpointer klass)
{
	self->priv = proton_plus_widgets_description_dialog_get_instance_private (self);
}

static void
proton_plus_widgets_description_dialog_finalize (GObject * obj)
{
	ProtonPlusWidgetsDescriptionDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG, ProtonPlusWidgetsDescriptionDialog);
	_g_object_unref0 (self->priv->_release);
	_g_object_unref0 (self->priv->_toolbar_view);
	_g_object_unref0 (self->priv->_window_title);
	_g_object_unref0 (self->priv->_web_button_content);
	_g_object_unref0 (self->priv->_web_button);
	_g_object_unref0 (self->priv->_header_bar);
	_g_object_unref0 (self->priv->_scrolled_window);
	_g_object_unref0 (self->priv->_description_label);
	G_OBJECT_CLASS (proton_plus_widgets_description_dialog_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_description_dialog_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsDescriptionDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_description_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsDescriptionDialog), 0, (GInstanceInitFunc) proton_plus_widgets_description_dialog_instance_init, NULL };
	GType proton_plus_widgets_description_dialog_type_id;
	proton_plus_widgets_description_dialog_type_id = g_type_register_static (adw_dialog_get_type (), "ProtonPlusWidgetsDescriptionDialog", &g_define_type_info, 0);
	ProtonPlusWidgetsDescriptionDialog_private_offset = g_type_add_instance_private (proton_plus_widgets_description_dialog_type_id, sizeof (ProtonPlusWidgetsDescriptionDialogPrivate));
	return proton_plus_widgets_description_dialog_type_id;
}

GType
proton_plus_widgets_description_dialog_get_type (void)
{
	static volatile gsize proton_plus_widgets_description_dialog_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_description_dialog_type_id__once)) {
		GType proton_plus_widgets_description_dialog_type_id;
		proton_plus_widgets_description_dialog_type_id = proton_plus_widgets_description_dialog_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_description_dialog_type_id__once, proton_plus_widgets_description_dialog_type_id);
	}
	return proton_plus_widgets_description_dialog_type_id__once;
}

static void
_vala_proton_plus_widgets_description_dialog_get_property (GObject * object,
                                                           guint property_id,
                                                           GValue * value,
                                                           GParamSpec * pspec)
{
	ProtonPlusWidgetsDescriptionDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG, ProtonPlusWidgetsDescriptionDialog);
	switch (property_id) {
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_description_dialog_set_property (GObject * object,
                                                           guint property_id,
                                                           const GValue * value,
                                                           GParamSpec * pspec)
{
	ProtonPlusWidgetsDescriptionDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_TYPE_DESCRIPTION_DIALOG, ProtonPlusWidgetsDescriptionDialog);
	switch (property_id) {
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

