[moserial] Switched deprecated show_uri to show_uri_on_window, fixes compiler warning
- From: Michael J. Chudobiak <mjc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [moserial] Switched deprecated show_uri to show_uri_on_window, fixes compiler warning
- Date: Fri, 22 Dec 2017 16:17:31 +0000 (UTC)
commit f2adec29943a68d7b9e0d8ac4a018b4aa506cdcb
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Fri Dec 22 11:16:59 2017 -0500
Switched deprecated show_uri to show_uri_on_window, fixes compiler warning
src/MainWindow.vala | 2 +-
src/SerialStreamRecorder.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/MainWindow.vala b/src/MainWindow.vala
index fcebdae..64e77e0 100644
--- a/src/MainWindow.vala
+++ b/src/MainWindow.vala
@@ -758,7 +758,7 @@ public class moserial.MainWindow : Gtk.Window //Have to extend Gtk.Winow to get
private void showHelp () {
try {
- show_uri(null, "help:moserial", Gdk.CURRENT_TIME);
+ show_uri_on_window(null, "help:moserial", Gdk.CURRENT_TIME);
} catch (GLib.Error e) {
warning(_("Unable to display help file: %s"), e.message);
}
diff --git a/src/SerialStreamRecorder.vala b/src/SerialStreamRecorder.vala
index 524d9ea..27c1c7b 100644
--- a/src/SerialStreamRecorder.vala
+++ b/src/SerialStreamRecorder.vala
@@ -93,7 +93,7 @@ public class moserial.SerialStreamRecorder {
/* TODO: allow this feature to be enabled / disabled */
if(launch && (MoUtils.fileSize(uri)>0)) {
try {
- show_uri(null, uri, Gdk.CURRENT_TIME);
+ show_uri_on_window(null, uri, Gdk.CURRENT_TIME);
} catch (GLib.Error e) {
warning(_("Unable to launch %s: %s"), uri, e.message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]