From 9c936feea0ba166826cfcf39637cb3c04b945094 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 26 Jul 2023 03:21:46 +1200 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 272652e..42296d8 100644 --- a/README.md +++ b/README.md @@ -477,7 +477,7 @@ from gi.repository import Gtk, Adw, Gio, GLib # Add GLib to imports self.about.set_logo_icon_name("org.example.example") # The icon will need to be added to appropriate location # E.g. /usr/share/icons/hicolor/scalable/apps/org.example.example.svg - self.about.show() + self.about.set_visible(True) ``` @@ -496,6 +496,8 @@ from gi.repository import Gtk, Adw, Gio, GLib # Add GLib to imports         dialog.set_copyright("© 2022 developer")         dialog.set_developers(["Developer"])         dialog.set_application_icon("com.github.devname.appname") # icon must be uploaded in ~/.local/share/icons or /usr/share/icons + + dialog.set_visible(True) ``` For further reading on what you can add, see [***AboutDialog***](https://docs.gtk.org/gtk4/class.AboutDialog.html).