Re: Desktop as transient window



Hi Paul,

In recent GTK+ versions, GtkDialog emits a warning when it is mapped
without a parent, saying that it is discouraged. See
https://git.gnome.org/browse/gtk+/tree/gtk/gtkdialog.c#n776

On Mon, Aug 10, 2015 at 9:43 AM, Paul Davis <paul linuxaudiosystems com> wrote:
On Mon, Aug 10, 2015 at 12:42 PM, Paul Davis <paul linuxaudiosystems com> wrote:
On Mon, Aug 10, 2015 at 12:40 PM, Igor Korot <ikorot01 gmail com> wrote:

IIUC, in this specific case I should create the main frame, hide it and then
set the parent for my options dialog to be this main frame.

you do not need to set the parent, and in almost all cases you should
not set the parent.

to be clear, i am referring to explicitly setting the "transient
parent" of a GtkWindow. I am not referring to setting the parent of a
GtkDialog, but GtkDialog's are entirely happy to have no parent.



-- 
  Jasper


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]