GNOME Bugzilla – Bug 780507
Use gtk_show_uri_on_window instead of deprecated gtk_show_uri
Last modified: 2017-03-28 08:37:46 UTC
gtk_show_uri is deprecated and its replacement gtk_show_uri_on_window is more sandbox-friendly.
Created attachment 348663 [details] [review] Use gtk_show_uri_on_window instead of deprecated gtk_show_uri
Review of attachment 348663 [details] [review]: Thanks, this looks good with one comment. ::: src/selections.js @@ +993,3 @@ function(urn) { let doc = Application.documentManager.getItemById(urn); + let toplevel = Application.application.get_windows()[0]; Instead of this, can you use gtk_widget_get_toplevel() with the widget?
(In reply to Cosimo Cecchi from comment #2) > Review of attachment 348663 [details] [review] [review]: > > Thanks, this looks good with one comment. > > ::: src/selections.js > @@ +993,3 @@ > function(urn) { > let doc = Application.documentManager.getItemById(urn); > + let toplevel = Application.application.get_windows()[0]; > > Instead of this, can you use gtk_widget_get_toplevel() with the widget? Of course.
Created attachment 348811 [details] [review] Use gtk_show_uri_on_window instead of deprecated gtk_show_uri
Review of attachment 348811 [details] [review]: Looks good.
Comment on attachment 348811 [details] [review] Use gtk_show_uri_on_window instead of deprecated gtk_show_uri Pushed to master.