From f716daa483b51551127362a63b016abe81a4e20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 1 Aug 2020 19:30:31 +0200 Subject: [PATCH] aboutdialog: Fix a code sample gdk_texture_new_from_file takes a GFile these days. --- gtk/gtkaboutdialog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 2bafb769e3..7c1a1b0e81 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -95,7 +95,10 @@ * set the title property explicitly when constructing a GtkAboutDialog, * as shown in the following example: * |[ - * GdkTexture *example_logo = gdk_texture_new_from_file ("./logo.png", NULL); + * GFile *logo_file = g_file_new_for_path ("./logo.png"); + * GdkTexture *example_logo = gdk_texture_new_from_file (logo_file, NULL); + * g_object_unref (logo_file); + * * gtk_show_about_dialog (NULL, * "program-name", "ExampleCode", * "logo", example_logo,