Skip to content

Commit d9badbe

Browse files
committed
Stop using deprecated gtk_show_uri
1 parent 6c17350 commit d9badbe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/PanelUI.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ export default function PanelUI({
8383
"button_blueprint_documentation",
8484
);
8585
button_blueprint_documentation.connect("clicked", () => {
86-
Gtk.show_uri(
87-
null,
88-
"https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/",
89-
null,
90-
);
86+
new Gtk.UriLauncher({
87+
uri: "https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/",
88+
})
89+
.launch(application.get_active_window(), null)
90+
.catch(console.error);
9191
});
9292

9393
let handler_id_xml = null;

0 commit comments

Comments
 (0)