[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Can you "localize" a dialog?
- From: Havoc Pennington <hp redhat com>
- To: gtk-app-devel-list redhat com
- Subject: Re: Can you "localize" a dialog?
- Date: Tue, 10 Aug 1999 11:27:30 -0400 (EDT)
On Tue, 10 Aug 1999, John Ringland wrote:
> I'm new to GTK+ and I'm struggling with how to "localize"
> a dialog.
>
> I'd like to write a (C++) DialogBox class that has a constructor
> (or other member-function) which
> pops up a dialog box window, and
> DOESN'T RETURN UNTIL a button in that window has been clicked?
>
In Gnome, use gnome_dialog_run(). In plain Gtk, get Gnome sources, copy
gnome_dialog_run().
(In short, the trick is to run a second instance of gtk_main() and
gtk_main_quit() when you're done with the dialog.)
Havoc
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]