summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-26 09:30:36 -0500
committerEmmanuele Bassi <ebassi@gnome.org>2021-03-11 16:37:33 +0000
commitb39160243f83f778c2bb63f1f1923843d0bff957 (patch)
treea26fcb5fc8d8547a866b2d8ad9b6f8559cd663c7
parentb460ffd1209b2e05f65b9187c67aef4cac7bbcf8 (diff)
downloadgtk+-b39160243f83f778c2bb63f1f1923843d0bff957.tar.gz
aboutdialog: Improve example image
Use our logo, and update the copyright years.
-rw-r--r--docs/reference/gtk/images/aboutdialog.pngbin19426 -> 20531 bytes
-rw-r--r--docs/tools/gtk-logo.pngbin0 -> 4736 bytes
-rw-r--r--docs/tools/widgets.c14
3 files changed, 11 insertions, 3 deletions
diff --git a/docs/reference/gtk/images/aboutdialog.png b/docs/reference/gtk/images/aboutdialog.png
index dd324b1880..e4a8d88020 100644
--- a/docs/reference/gtk/images/aboutdialog.png
+++ b/docs/reference/gtk/images/aboutdialog.png
Binary files differ
diff --git a/docs/tools/gtk-logo.png b/docs/tools/gtk-logo.png
new file mode 100644
index 0000000000..28e546b965
--- /dev/null
+++ b/docs/tools/gtk-logo.png
Binary files differ
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 56cf2eb8d2..474cdd3bbe 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -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);
}