Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gnome-builder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Günther Wagner
gnome-builder
Commits
5dd72316
Commit
5dd72316
authored
Jan 17, 2019
by
Christian Hergert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
html-preview: fix markdown preview
parent
10b5183f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/plugins/html-preview/html_preview.py
src/plugins/html-preview/html_preview.py
+4
-4
No files found.
src/plugins/html-preview/html_preview.py
View file @
5dd72316
...
...
@@ -295,8 +295,8 @@ class HtmlPreviewAddin(GObject.Object, Ide.EditorPageAddin):
self
.
sphinx_builddir
,
visible
=
True
)
column
=
view
.
get_ancestor
(
Ide
.
Layout
GridColumn
)
grid
=
column
.
get_ancestor
(
Ide
.
Layout
Grid
)
column
=
view
.
get_ancestor
(
Ide
.
GridColumn
)
grid
=
column
.
get_ancestor
(
Ide
.
Grid
)
index
=
grid
.
child_get_property
(
column
,
'index'
)
# If we are past first stack, use the 0 column stack
...
...
@@ -373,7 +373,7 @@ class HtmlPreviewPage(Ide.Page):
self
.
document
=
document
self
.
webview
=
WebKit2
.
WebView
()
self
.
webview
.
set_expand
(
True
)
self
.
webview
.
props
.
expand
=
True
self
.
add
(
self
.
webview
)
self
.
webview
.
show
()
...
...
@@ -396,7 +396,7 @@ class HtmlPreviewPage(Ide.Page):
self
.
on_title_changed
(
document
)
def
on_title_changed
(
self
,
buffer
):
self
.
set_title
(
"%s %s"
%
(
buffer
.
get
_title
(),
_
(
"(Preview)"
)))
self
.
set_title
(
"%s %s"
%
(
buffer
.
dup
_title
(),
_
(
"(Preview)"
)))
def
web_view_destroyed
(
self
,
web_view
):
self
.
document
.
disconnect
(
self
.
title_handler
)
...
...
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