[telegnome] Stop using deprecated Gtk.show_uri
- From: Colin Watson <cjwatson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [telegnome] Stop using deprecated Gtk.show_uri
- Date: Sat, 10 Feb 2018 02:29:43 +0000 (UTC)
commit c65dc78bd8b8c8f7918406e01062d8d3c3c67098
Author: Colin Watson <cjwatson debian org>
Date: Sat Feb 10 02:27:40 2018 +0000
Stop using deprecated Gtk.show_uri
* src/gui.vala (Gui.activate_help_contents): Use Gtk.show_uri_on_window
rather than Gtk.show_uri.
* README, configure.ac: Require gtk+-3.0 >= 3.22.
README | 2 +-
configure.ac | 2 +-
src/gui.vala | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/README b/README
index 5fd79eb..32fc1f7 100644
--- a/README
+++ b/README
@@ -7,7 +7,7 @@ To compile this package, you need:
An ANSI C-compiler
GLib >= 2.44
-GTK+ >= 3.8
+GTK+ >= 3.22
gdk-pixbuf >= 2.26
cairo >= 1.10
dconf
diff --git a/configure.ac b/configure.ac
index e953b86..85cfffd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,7 @@ AC_DEFINE_UNQUOTED([SYSCONFDIR], "$sysconfdir", [System configuration directory.
AM_PROG_VALAC
AM_PATH_GLIB_2_0([2.44.0], [], [AC_MSG_ERROR([GLib >= 2.44.0 is required])], [gobject gio])
-PKG_CHECK_MODULES([TELEGNOME], [gtk+-3.0 >= 3.8 gdk-pixbuf-2.0 >= 2.26 cairo >= 1.10 dconf uuid])
+PKG_CHECK_MODULES([TELEGNOME], [gtk+-3.0 >= 3.22 gdk-pixbuf-2.0 >= 2.26 cairo >= 1.10 dconf uuid])
AC_ARG_VAR([XMLLINT], [the xmllint program])
AC_PATH_PROG([XMLLINT], [xmllint])
diff --git a/src/gui.vala b/src/gui.vala
index 0bca815..2476f26 100644
--- a/src/gui.vala
+++ b/src/gui.vala
@@ -434,8 +434,8 @@ public class Gui : Object {
public void activate_help_contents (SimpleAction action,
Variant? parameter) {
try {
- Gtk.show_uri (window.get_screen (),
- "help:telegnome", Gdk.CURRENT_TIME);
+ Gtk.show_uri_on_window (window, "help:telegnome",
+ Gdk.CURRENT_TIME);
} catch (Error e) {
warning ("Error displaying help: %s", e.message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]