Re: GTK dialog which should not be draggable (ie; floating)

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

 



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.

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux