[Glade-users] GtkFileChooserDialog

Juan Pablo Ugarte juanpablougarte at gmail.com
Fri May 27 21:34:16 UTC 2016


On Sat, 2016-05-28 at 00:08 +0300, LRN wrote:
> On 27.05.2016 23:03, Ian Chapman wrote:
> > In glade, FileChooserDialog is a top level just like window only I
> > get
> > this message on the terminal window.
> > 
> > > Gtk-Message: GtkDialog mapped without a transient parent. This is
> > > discouraged.

The message is harmless and will always show up in glade
because transient-for property is ignored in the runtime.

> > Is there a way to fix the above Gtk-Message?  I'm a bit lost and
> > would
> > prefer to do it all from glade if possible.  Regards Ian.
> 
> Call gtk_window_set_transient_for() on the dialog before showing it,
> and
> make it transient for a window that you already have shown.

So you could set transient-for window property directly on Glade and
that will work as expected in the preview and your application.

greets

JP


More information about the Glade-users mailing list