Re: Closing Windows



Delbert Martin wrote:
> Ok for a program i am designing i have a login button. i would like to make this login window disappear on a successful login but if unsucessful i would like the window to stay.
> Is there anyway way to do this?
> i am using a function to create the window and the window is a Global Widget.
> how would i tell that window to close? only that window.
gtk_widget_hide() ? So you haven't to rebuild it on next login (just
remember to clear the password :-)).

If you are using glade, you can also set the autoclose attribute for the
window, and if the login is wrong add an idle handler to redisplay it.

BYtE,
 Diego.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





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