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

Re: Can you "localize" a dialog?




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]