Skip to content

Commit

Permalink
Merge pull request #18 from daschw/show
Browse files Browse the repository at this point in the history
Fix GUI
  • Loading branch information
daschw authored Sep 2, 2018
2 parents 0b95f93 + 37e6d0a commit 9fa1bf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function image_widget(fn)
vbox = Gtk.GtkBoxLeaf(:v)
push!(vbox, Gtk.GtkLabelLeaf(fn))
push!(vbox, img)
show(img)
Gtk.showall(img)
vbox
end

Expand All @@ -27,12 +27,12 @@ function replace_refimg_dialog(tmpfn, reffn_old; reffn_new = reffn_old)
win = Gtk.GtkWindowLeaf("Should we make this the new reference image?")
push!(win, Gtk.GtkFrameLeaf(imgbox))

showall(win)
Gtk.showall(win)

# now ask the question
if Gtk.ask_dialog("Should we make this the new reference image?", "No", "Yes")
replace_refimg(tmpfn, reffn_new)
end

destroy(win)
Gtk.destroy(win)
end

0 comments on commit 9fa1bf9

Please sign in to comment.