Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
859e0efa
Commit
859e0efa
authored
Dec 06, 2015
by
Lukas K.
Browse files
open URLs from dbus
parent
73699b12
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/dbus-interface.c
View file @
859e0efa
...
...
@@ -213,13 +213,14 @@ handle_method_call(GDBusConnection* UNUSED(connection),
g_variant_get
(
parameters
,
"(ssi)"
,
&
filename
,
&
password
,
&
page
);
document_close
(
priv
->
zathura
,
false
);
const
bool
ret
=
document_open
(
priv
->
zathura
,
filename
,
strlen
(
password
)
>
0
?
password
:
NULL
,
page
);
document_open_idle
(
priv
->
zathura
,
filename
,
strlen
(
password
)
>
0
?
password
:
NULL
,
page
,
NULL
,
NULL
);
g_free
(
filename
);
g_free
(
password
);
GVariant
*
result
=
g_variant_new
(
"(b)"
,
ret
);
GVariant
*
result
=
g_variant_new
(
"(b)"
,
true
);
g_dbus_method_invocation_return_value
(
invocation
,
result
);
return
;
}
else
if
(
g_strcmp0
(
method_name
,
"CloseDocument"
)
==
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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