[Glade-users] libglade and Dialog Modal



On Wed, 2003-11-05 at 18:38, Marcos Leal wrote:
Hi there,

      I am having a problem that I am sure you guys would solve it really quick (or 
point me to the right source).

      I have a GnomeApp window TOP LEVEL.    
      I want to have a GtkWindow DIALOG MODAL (small on size) that will be on top 
of the GnomeApp.
      But if I click on the GnomeApp window it will not cover the GtkWindow.  

      How to make it so the GtkWindow will be on top and with focus until I cilck a 
button that will destroy this window and will be back to the GnomeApp window 
?

I think you can use gtk_grab_add() to grab all events to your window.
Then you check if a button press occurs outside the window. If it does
you do gtk_grab_remove() and hide the window.

Damon






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