mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
aboutdialog: Improve example image
Use our logo, and update the copyright years.
This commit is contained in:
parent
b460ffd120
commit
b39160243f
Binary file not shown.
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 20 KiB |
BIN
docs/tools/gtk-logo.png
Normal file
BIN
docs/tools/gtk-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user