[glom/glom-1-32] 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/glom-1-32] Use gtk_show_uri_on_window() instead of gtk_show_uri().
- Date: Wed, 21 Jun 2017 12:33:17 +0000 (UTC)
commit 818f6efa4827c08e8ef035905b4d7fb35d7054b2
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 de179d8..1488101 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;
@@ -524,11 +521,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]