On Thu, Nov 17, 2011 at 2:41 PM, Carlo E. Prelz
Subject: [ruby-gnome2-devel-en] question about modal window
Date: gio 17 nov 11 12:54:30 +0800
> usually I have *self.modal = true* in initialize method and *self.modal =
Quoting hendra kusuma (email@example.com
> I need to create a modal child window.
> So far I use gtk_window, but it has one problem
> false* in close method.
> problem is close method doesn't work if the child window is closed byWhen I need a modal window, I use Dialog:
> clicking x button at the frame,
> so if a user click it, child window disappear but modal state doesn't
> change to false so parent window can't be accessed
> so my question is,
> is it the right way to create a modal child window, if not, what widget
> should I use?
I pack dialog.vbox with whatever I want to show, and I add one or more
buttons - for example, if I just want the user to close the window I
dialog.signal_connect('response') do |w,r|
and I complete with
I hope this helps