gui - error message when running zenity under 16.04: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged - Ask Ubuntu
under ubuntu 16.04 following message
gtk-message: gtkdialog mapped without transient parent. discouraged
when open zenity command
zenity --text-info --filename=<filename>
this didn't happen under 14.04. presume answer related this post post doesn't explain how implement proposed solution. please explain file should add suggested lines to?
you fix warning giving gtkdialog parent modal to. relevant functions gtk_window_set_transient_for() (which sets window on top of, or transient for, one) , optionally gtk_window_set_modal() make modal dialog. various gtkdialog constructors do.
ignore it.
it's warning, not error. application works, it's not coded best practices in mind, seems. have modify zenity
's source code implement fix described in linked question , compile yourself, but... works anyway, why should bother?
if want rid of output in terminal, redirect stderr (standard error stream, that's warning gets printed to) /dev/null
(virtual character device swallows data) appending 2> /dev/null
end of command, this:
zenity --text-info --filename=<filename> 2> /dev/null
Comments
Post a Comment