aboutdialog: Improve example image

Use our logo, and update the copyright years.
This commit is contained in:
Matthias Clasen 2021-02-26 09:30:36 -05:00 committed by Emmanuele Bassi
parent b460ffd120
commit b39160243f
3 changed files with 11 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 20 KiB

BIN
docs/tools/gtk-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -878,19 +878,27 @@ create_about_dialog (void)
"and many more...",
NULL
};
GFile *file;
GdkTexture *logo;
file = g_file_new_for_path ("docs/tools/gtk-logo.png");
logo = gdk_texture_new_from_file (file, NULL);
widget = gtk_about_dialog_new ();
g_object_set (widget,
"program-name", "GTK Code Demos",
"version", PACKAGE_VERSION,
"copyright", "© 1997-2013 The GTK Team",
"copyright", "© 1997-2021 The GTK Team",
"website", "http://www.gtk.org",
"comments", "Program to demonstrate GTK functions.",
"logo-icon-name", "help-about",
"logo", logo,
"title", "About GTK Code Demos",
"authors", authors,
NULL);
gtk_window_set_icon_name (GTK_WINDOW (widget), "help-about");
g_object_unref (logo);
g_object_unref (file);
return new_widget_info ("aboutdialog", widget, ASIS);
}