Re: GTK dialog which should not be draggable (ie; floating)
- From: Michael Torrie <torriem gmail com>
- Cc: gtk-list gnome org
- Subject: Re: GTK dialog which should not be draggable (ie; floating)
- Date: Wed, 29 Apr 2009 11:55:22 -0600
your_shekhar wrote:
> Hi everyone,
> I want my dialog box to be freezed in the initial location where it is
> displayed...it should not be possible to drag its title bar and place it
> anywhere...in other words it should not be floating...
>
> I searched a lot, but to no outcome.....any help....? Thanx in advance.
Typically the Window Manager is responsible for allowing windows to be
moved. I don't think there is an absolute way to prevent windows from
being moved, nor under normal circumstances is this desirable, which is
why X11 has never really allowed this "feature." Removing the window
decorations makes it harder to move a window, but doesn't actually
prevent it. I can still alt-click windows to drag them (or win-click).
You could, however, have an event handler that, when the window is
moved, asks the window manager to move your window back to the location
you want to be. see the GtkWindow class docs for details on this.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]