[connections/gtk-show-uri-is-deprecated] application/connection: Replace deprecated Gtk.show_uri() calls
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/gtk-show-uri-is-deprecated] application/connection: Replace deprecated Gtk.show_uri() calls
- Date: Mon, 22 Mar 2021 11:21:16 +0000 (UTC)
commit 06c10956d383c342b788d9855d21ad336aed07be
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Mar 22 12:16:30 2021 +0100
application/connection: Replace deprecated Gtk.show_uri() calls
Deprecated since Gtk 3.22.
src/application.vala | 2 +-
src/connection.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/application.vala b/src/application.vala
index 6417f67..5d87ed4 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -58,7 +58,7 @@ namespace Connections {
private void show_help () {
try {
- Gtk.show_uri (main_window.get_screen (),
+ Gtk.show_uri_on_window (main_window,
"help:gnome-connections",
Gtk.get_current_event_time ());
} catch (GLib.Error error) {
diff --git a/src/connection.vala b/src/connection.vala
index 04f75b8..93ea9f1 100644
--- a/src/connection.vala
+++ b/src/connection.vala
@@ -132,7 +132,7 @@ namespace Connections {
Notification.OKFunc open = () => {
debug ("Opening screenshot file");
try {
- Gtk.show_uri (Application.application.main_window.get_screen (),
+ Gtk.show_uri_on_window (Application.application.main_window,
File.new_for_path (path).get_uri () + ".png",
Gdk.CURRENT_TIME);
} catch (GLib.Error error) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]