Skip to content

Commit

Permalink
set correct parent for error dialog message so that it is highlighted…
Browse files Browse the repository at this point in the history
… correctly
  • Loading branch information
abchk1234 committed Dec 13, 2014
1 parent f4cae90 commit c7634fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pdf2png.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def pdf_to_img(self, chooser_dialog, pdffilepath):
else:
err = 'gs (GhostScript) not available for conversion'
if err:
dialog2 = Gtk.MessageDialog(self, 0, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, "Warning!")
dialog2 = Gtk.MessageDialog(chooser_dialog, 0, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, "Warning!")
dialog2.format_secondary_text("{0}".format(err))
dialog2.run()
dialog2.destroy()
Expand Down

0 comments on commit c7634fe

Please sign in to comment.