Re: gtk_window_set_transient_for just works to dialog?
- From: Andy Stewart <lazycat manatee gmail com>
- To: David Nečas <yeti physics muni cz>
- Cc: gtk-list gnome org
- Subject: Re: gtk_window_set_transient_for just works to dialog?
- Date: Mon, 12 Oct 2009 19:23:14 +0800
David Nečas <yeti physics muni cz> writes:
> On Mon, Oct 12, 2009 at 06:32:03PM +0800, Andy Stewart wrote:
>> You use fucntion `gtk_window_fullscreen` to make `windowA` fullscreen.
>> Then recompile you code, you will find `windowB` can't display
>> correctly.
>
> Well, the point of a fullscreen window usually is to take the entire
> screen and cover everything else that might be there.
>
>> It's works fine when `windowB` is `Dialog`.
>
> Since some programs want to display dialogs over fullsceeen windows
> window managers might react to some hint and do this (I have also seen
> programs/window managers where this does not work and one has to
> un-fullscreen the window to see the dialogs).
>
> You might try
>
> gtk_window_set_type_hint(GTK_WINDOW(dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
Yes, above code works, sweet now....
Thanks for your help!
-- Andy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]