Re: Desktop as transient window
- Date: Sun, 9 Aug 2015 15:39:04 -0700
- From: "Jasper St. Pierre" <jstpierre@xxxxxxxxxxx>
- Subject: Re: Desktop as transient window
As mentioned, dialogs are designed to be parented to a specific
window. As the warning says, this is discouraged (and might cause
things like Wayland not to work correctly). You can ignore the warning
if you want.
On Sun, Aug 9, 2015 at 3:34 PM, Igor Korot <ikorot01@xxxxxxxxx> wrote:
> Hi, Jasper,
> On Sun, Aug 9, 2015 at 3:00 PM, Jasper St. Pierre <jstpierre@xxxxxxxxxxx> wrote:
>> The default transient window is NULL, so you don't have to do anything.
> OK, I did call "gtk_window_set_transient_for( dlg, NULL );", but still
> got the warning
> GtkDialog mapped without a transient parent: This is discouraged.
> The thing is: I have my own GtkDialog class and I'm trying to
> eliminate this warning...
> Thank you.
>> On Sun, Aug 9, 2015 at 11:59 AM, Igor Korot <ikorot01@xxxxxxxxx> wrote:
>>> Hi, ALL,
>>> There is a function in GTK - gtk_window_set_transient_for() - which
>>> sets the parent
>>> window for the current one.
>>> Now the question I have is: is it possible to set the parent to become
>>> a Desktop?
>>> Let's say I have an application class and I want to make sure that I
>>> already have a TLW
>>> to pass it to that function. Otherwise I want to use Desktop, because
>>> passing NULL
>>> according to documentation will unset it.
>>> Passing NULL for parent unsets the current transient window
>>> and it does not say it what happen if there was no such window in the
>>> first place.
>>> So if I will pass NULL for the parent and the transient is not being
>>> set, will it become
>>> set as a Desktop.
>>> This is not clear from the docs.
>>> Thank you for clarification.
>>> gtk-list mailing list
gtk-list mailing list