Please correct your adw_show_about_dialog () example
Hello!
In https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.AboutDialog.html , you show the example:
adw_show_about_dialog (gtk_application_get_active_window (app),
"application-name", _("Example"),
"application-icon", "org.example.App",
"version", "1.2.3",
"copyright", "© 2022 Angela Avery",
"issue-url", "https://gitlab.gnome.org/example/example/-/issues/new",
"license-type", GTK_LICENSE_GPL_3_0,
"developers", developers,
"designers", designers,
"translator-credits", _("translator-credits"),
NULL);
However, gtk_application_get_active_window (app)
give you a GtkWindow
, which is incorrect. https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/func.show_about_dialog.html shows the first argument needs to be a GtkWidget
You can fix this with:
adw_show_about_dialog (GTK_WIDGET (gtk_application_get_active_window (app)),
"application-name", _("Example"),
"application-icon", "org.example.App",
"version", "1.2.3",
"copyright", "© 2022 Angela Avery",
"issue-url", "https://gitlab.gnome.org/example/example/-/issues/new",
"license-type", GTK_LICENSE_GPL_3_0,
"developers", developers,
"designers", designers,
"translator-credits", _("translator-credits"),
NULL);