Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
glom
Commits
4a0d6358
Commit
4a0d6358
authored
Mar 07, 2016
by
Murray Cumming
Browse files
UiUtils::show_report_in_browser(): Pass the GdkScreen to gtk_show_uri().
parent
934acfff
Changes
1
Hide whitespace changes
Inline
Side-by-side
glom/utils_ui.cc
View file @
4a0d6358
...
...
@@ -546,7 +546,12 @@ void UiUtils::show_report_in_browser(const std::string& filepath, Gtk::Window* p
//Use the GNOME browser:
GError
*
gerror
=
nullptr
;
if
(
!
gtk_show_uri
(
0
/* screen */
,
uri
.
c_str
(),
GDK_CURRENT_TIME
,
&
gerror
))
Glib
::
RefPtr
<
Gdk
::
Screen
>
screen
;
if
(
parent_window
)
screen
=
parent_window
->
get_screen
();
if
(
!
gtk_show_uri
(
screen
?
screen
->
gobj
()
:
nullptr
,
uri
.
c_str
(),
GDK_CURRENT_TIME
,
&
gerror
))
{
std
::
cerr
<<
G_STRFUNC
<<
": "
<<
gerror
->
message
<<
std
::
endl
;
g_error_free
(
gerror
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment