Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
yelp
Commits
45d80fbe
Commit
45d80fbe
authored
Dec 08, 2010
by
Shaun McCance
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable syntax highlighting
parent
e9dab4a3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
21 deletions
+10
-21
configure.ac
configure.ac
+2
-0
libyelp/yelp-view.c
libyelp/yelp-view.c
+3
-5
stylesheets/db2html.xsl.in
stylesheets/db2html.xsl.in
+0
-5
stylesheets/mal2html.xsl.in
stylesheets/mal2html.xsl.in
+0
-4
stylesheets/yelp-common.xsl.in
stylesheets/yelp-common.xsl.in
+5
-7
No files found.
configure.ac
View file @
45d80fbe
...
...
@@ -137,6 +137,8 @@ XSL_ICONS="`$PKG_CONFIG --variable=xsltdir yelp-xsl`/common/icons.xsl"
AC_SUBST(XSL_ICONS)
XSL_HTML="`$PKG_CONFIG --variable=xsltdir yelp-xsl`/common/html.xsl"
AC_SUBST(XSL_HTML)
XSL_JSDIR="`$PKG_CONFIG --variable=jsdir yelp-xsl`"
AC_SUBST(XSL_JSDIR)
XSL_GETTEXT="`$PKG_CONFIG --variable=gettext yelp-xsl`"
AC_SUBST(XSL_GETTEXT)
...
...
libyelp/yelp-view.c
View file @
45d80fbe
...
...
@@ -78,7 +78,7 @@ static void view_populate_popup (YelpView *view,
gpointer
data
);
static
void
view_script_alert
(
YelpView
*
view
,
WebKitWebFrame
*
frame
,
gchar
*
*
message
,
gchar
*
message
,
gpointer
data
);
static
gboolean
view_navigation_requested
(
WebKitWebView
*
view
,
WebKitWebFrame
*
frame
,
...
...
@@ -363,6 +363,7 @@ yelp_view_class_init (YelpViewClass *klass)
nautilus_sendto
=
g_find_program_in_path
(
"nautilus-sendto"
);
websettings
=
webkit_web_settings_new
();
g_object_set
(
websettings
,
"enable-universal-access-from-file-uris"
,
TRUE
,
NULL
);
g_signal_connect
(
settings
,
"fonts-changed"
,
G_CALLBACK
(
settings_set_fonts
),
...
...
@@ -1188,7 +1189,7 @@ view_populate_popup (YelpView *view,
static
void
view_script_alert
(
YelpView
*
view
,
WebKitWebFrame
*
frame
,
gchar
*
*
message
,
gchar
*
message
,
gpointer
data
)
{
printf
(
"
\n\n
===ALERT===
\n
%s
\n\n
"
,
message
);
...
...
@@ -1231,9 +1232,6 @@ view_resource_request (WebKitWebView *view,
gchar
last
;
gchar
*
newpath
;
debug_print
(
DB_FUNCTION
,
"entering
\n
"
);
debug_print
(
DB_ARG
,
" uri=
\"
%s
\"\n
"
,
requri
);
if
(
!
g_str_has_prefix
(
requri
,
BOGUS_URI
))
return
;
...
...
stylesheets/db2html.xsl.in
View file @
45d80fbe
...
...
@@ -37,9 +37,4 @@
</xsl:choose>
</xsl:template>
<!-- == db2html.division.head.extra == -->
<xsl:template
name=
"db2html.division.head.extra"
>
<xsl:call-template
name=
"yelp.common.javascript"
/>
</xsl:template>
</xsl:stylesheet>
stylesheets/mal2html.xsl.in
View file @
45d80fbe
...
...
@@ -80,8 +80,4 @@ body, div.body {
</xsl:if>
</xsl:template>
<xsl:template
name=
"html.head.custom"
>
<xsl:call-template
name=
"yelp.common.javascript"
/>
</xsl:template>
</xsl:stylesheet>
stylesheets/yelp-common.xsl.in
View file @
45d80fbe
...
...
@@ -11,6 +11,9 @@
<xsl:param
name=
"html.extension"
select=
"''"
/>
<xsl:param
name=
"html.syntax.highlight"
select=
"true()"
/>
<xsl:param
name=
"html.js.root"
select=
"'file://@XSL_JSDIR@/'"
/>
<!-- == html.output == -->
<xsl:template
name=
"html.output"
>
<xsl:param
name=
"node"
select=
"."
/>
...
...
@@ -83,14 +86,10 @@ div.body {
border: none;
}
</xsl:text>
<xsl:call-template
name=
"yelp.css.custom"
/>
</xsl:template>
<xsl:template
name=
"yelp.css.custom"
/>
<xsl:template
name=
"yelp.common.javascript"
>
<script
type=
"text/javascript"
language=
"javascript"
src=
"@DATADIR@/jquery-1.4.2.min.js"
/>
<script
type=
"text/javascript"
language=
"javascript"
src=
"@DATADIR@/jquery-ui-1.8.custom.min.js"
/>
<!-- == html.js.custom == -->
<xsl:template
name=
"html.js.custom"
>
<script
type=
"text/javascript"
language=
"javascript"
>
<xsl:text>
$(document).ready (function () {
...
...
@@ -111,5 +110,4 @@ $(document).ready (function () {
</script>
</xsl:template>
</xsl:stylesheet>
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