Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
f4c0dc50
Commit
f4c0dc50
authored
Jun 07, 2017
by
Sylvain Dailler
Browse files
Exception handling for image loading. Allow to use why3ide in some
situation when Gtk is not properly loaded.
parent
3a794abf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ide/gconfig.ml
View file @
f4c0dc50
...
...
@@ -360,11 +360,13 @@ let image ?size f =
Filename
.
concat
(
datadir
main
)
(
Filename
.
concat
"images"
(
f
^
".png"
))
in
try
(
match
size
with
|
None
->
GdkPixbuf
.
from_file
n
|
Some
s
->
GdkPixbuf
.
from_file_at_size
~
width
:
s
~
height
:
s
n
)
with
_
->
!
image_default
let
iconname_default
=
ref
""
let
iconname_undone
=
ref
""
...
...
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