Reputation: 69984
I have a program that simply creates a GtkDialog and then calls gtk_widget_show_all on it. The GTKDialog acts as the "main window" of the program, in practice.
Everything seems to be working alright but I get a warning from GTK saying ""GtkDialog mapped without a transient parent. This is discouraged.". How can I fix this? Do I need to create an invisible window to be the parent for my dialog?
Upvotes: 1
Views: 5212
Reputation: 2327
Well the question would be why you used GtkDialog instead of GtkWindow. The warning is harmless but that is a weird design choice to make a dialog the main window.
Upvotes: 2