RE: A Modal Window



Title: RE: A Modal Window

Hi, there are two ways for doing this:
1) Call gtk_main() again so you enter in a second event loop. When you press an "ok" or "cancel" button just call gtk_main_quit(). You will return to the main event loop.

2) Do something like this:
  
   while (exit_modal != TRUE) gtk_main_iteration();

and in your callback function do exit_modal = TRUE somewhere

Esteban Quijano Vincenzi.
Quality Assurance - Intel project
Artinsoft corp.


-----Original Message-----
From: Andrés" Giraldo [mailto:andres_giraldo yahoo com]
Sent: Tuesday, June 19, 2001 7:39 AM
To: Gtk List
Subject: A Modal Window


Hi!

I need to call a window that shows 2 options in
buttons, yes or no, and I need to wait for that
answer, something like a vbModal in MS-Visual Basic...

A window that waits until it's unloaded

How can I do this?

Thanks!

__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

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



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