Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
yad
Commits
a1a25e72
Commit
a1a25e72
authored
Apr 04, 2022
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix handling uri click in browser mode for html dialog
parent
de594b62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
html.c
src/html.c
+13
-1
No files found.
src/html.c
View file @
a1a25e72
...
...
@@ -31,6 +31,7 @@ static YadSearchBar *search_bar = NULL;
static
GString
*
inbuf
;
static
gboolean
is_loaded
=
FALSE
;
static
gboolean
uri_cmd
=
FALSE
;
#ifndef PATH_MAX
#define PATH_MAX 4096
...
...
@@ -141,7 +142,7 @@ policy_cb (WebKitWebView *v, WebKitPolicyDecision *pd, WebKitPolicyDecisionType
g_app_info_launch_default_for_uri
(
uri
,
NULL
,
NULL
);
}
}
else
if
(
options
.
data
.
uri_handler
&&
options
.
data
.
uri_handler
[
0
])
else
if
(
uri_cmd
&&
options
.
data
.
uri_handler
&&
options
.
data
.
uri_handler
[
0
])
{
gchar
*
v1
,
*
v2
,
*
cmd
;
gint
status
;
...
...
@@ -426,6 +427,7 @@ html_create_widget (GtkWidget * dlg)
{
GtkWidget
*
w
,
*
sw
;
WebKitSettings
*
wk_settings
;
gchar
*
str
;
w
=
gtk_box_new
(
GTK_ORIENTATION_VERTICAL
,
2
);
...
...
@@ -492,6 +494,16 @@ html_create_widget (GtkWidget * dlg)
}
}
/* check for user specified uri handler */
#ifndef STANDALONE
str
=
g_settings_get_string
(
settings
,
"open-command"
);
#else
str
=
g_strdup
(
OPEN_CMD
);
#endif
if
(
strcmp
(
options
.
data
.
uri_handler
,
str
)
!=
0
)
uri_cmd
=
TRUE
;
g_free
(
str
);
/* load data */
if
(
options
.
html_data
.
uri
)
load_uri
(
options
.
html_data
.
uri
);
...
...
Write
Preview
Markdown
is supported
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