[gitg/fix-warnings: 4/7] Use non deprecated show_uri
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/fix-warnings: 4/7] Use non deprecated show_uri
- Date: Tue, 15 Feb 2022 00:33:12 +0000 (UTC)
commit c4cfc2fbe2772c59cfde531265a00164f0f7d1c7
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Tue Feb 15 01:09:38 2022 +0100
Use non deprecated show_uri
libgitg/gitg-diff-view-file.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgitg/gitg-diff-view-file.vala b/libgitg/gitg-diff-view-file.vala
index 797a9282..cb86e17f 100644
--- a/libgitg/gitg-diff-view-file.vala
+++ b/libgitg/gitg-diff-view-file.vala
@@ -235,7 +235,7 @@ class Gitg.DiffViewFile : Gtk.Grid
open_file.activate.connect(() => {
try
{
- Gtk.show_uri(d_expander.get_screen(), location.get_uri(), Gdk.CURRENT_TIME);
+ Gtk.show_uri_on_window((Gtk.Window)d_expander.get_window(),
location.get_uri(), Gdk.CURRENT_TIME);
}
catch (Error e)
{
@@ -251,7 +251,7 @@ class Gitg.DiffViewFile : Gtk.Grid
open_folder.activate.connect(() => {
try
{
- Gtk.show_uri(d_expander.get_screen(), location.get_parent().get_uri(),
Gdk.CURRENT_TIME);
+ Gtk.show_uri_on_window((Gtk.Window)d_expander.get_window(),
location.get_parent().get_uri(), Gdk.CURRENT_TIME);
}
catch (Error e)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]