mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
aboutdialog: Fix a code sample
gdk_texture_new_from_file takes a GFile these days.
This commit is contained in:
parent
415946eb0f
commit
f716daa483
@ -95,7 +95,10 @@
|
||||
* set the title property explicitly when constructing a GtkAboutDialog,
|
||||
* as shown in the following example:
|
||||
* |[<!-- language="C" -->
|
||||
* 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,
|
||||
|
Loading…
Reference in New Issue
Block a user