[glom/gtkmm4v3: 21/21] Use gtk_show_uri_on_window() instead of gtk_show_uri().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gtkmm4v3: 21/21] Use gtk_show_uri_on_window() instead of gtk_show_uri().
- Date: Tue, 14 Mar 2017 09:45:20 +0000 (UTC)
commit 6d15adcf742b58be626b8066e4a7f8cdcb3928d2
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Mar 14 10:32:26 2017 +0100
Use gtk_show_uri_on_window() instead of gtk_show_uri().
gtk_show_uri() is deprecated.
glom/utils_ui.cc | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/glom/utils_ui.cc b/glom/utils_ui.cc
index e0ce9d8..854e1f8 100644
--- a/glom/utils_ui.cc
+++ b/glom/utils_ui.cc
@@ -148,11 +148,8 @@ void UiUtils::show_help(Gtk::Window* parent_window, const Glib::ustring& id)
{
//Use the GNOME help browser:
GError* gerror = nullptr;
- Glib::RefPtr<Gdk::Screen> screen;
- if(parent_window)
- screen = parent_window->get_screen();
- if(!gtk_show_uri(screen ? screen->gobj() : nullptr,
+ if(!gtk_show_uri_on_window(parent_window ? parent_window->gobj() : nullptr,
uri.c_str(), GDK_CURRENT_TIME, &gerror))
{
std::cerr << G_STRFUNC << ": " << gerror->message << std::endl;
@@ -529,11 +526,8 @@ void UiUtils::show_report_in_browser(const std::string& filepath, Gtk::Window* p
//Use the GNOME browser:
GError* gerror = nullptr;
- Glib::RefPtr<Gdk::Screen> screen;
- if(parent_window)
- screen = parent_window->get_screen();
- if(!gtk_show_uri(screen ? screen->gobj() : nullptr,
+ if(!gtk_show_uri_on_window(parent_window ? parent_window->gobj() : nullptr,
uri.c_str(), GDK_CURRENT_TIME, &gerror))
{
std::cerr << G_STRFUNC << ": " << gerror->message << std::endl;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]