show_about_dialog


Description:

[ Version ( since = "2.6" ) ]
public void show_about_dialog (Window? parent, ...)

This is a convenience function for showing an application’s about box.

The constructed dialog is associated with the parent window and reused for future invocations of this function.

Example: AboutDialog (convenience function):

public static int main (string[] args) {
Gtk.init (ref args);

Gtk.Window window = new Gtk.Window ();
window.destroy.connect (Gtk.main_quit);
window.set_default_size (500, 500);
window.show_all ();

string[] authors = {"Scrooge McDuck", "Gyro Gearloose"};

// Use property names as keys
Gtk.show_about_dialog (window,
program_name: "SWMS",
copyright: "Copyright © 1998-2000 Gyro Gearloose",
authors: authors,
website: "http://en.wikipedia.org/wiki/Scrooge_McDuck",
website_label: "Scrooge McDuck and Co.");

window.show_all ();
Gtk.main ();
return 0;
}

valac --pkg gtk+-3.0 Gtk.show_about_dialog.vala

Parameters:

parent

transient parent, or null for none

...

value of first property, followed by more properties, null-terminated

first_property_name

the name of the first property


Namespace: Gtk
Package: gtk+-3.0