javascript alert function analog in gtk, probably some kind of modal dialog, but looking for a quickie

2016-07-31 Thread Dan Hitt
For front end web development, javascript provides a very handy alert( ) function. alert("this is a message") just pops up a message for the user to click "ok" on. So it's a handy one-liner to stick (temporarily or not) into a piece of code. So i'm wondering if there's a one-line, one-argument g

Re: javascript alert function analog in gtk, probably some kind of modal dialog, but looking for a quickie

2016-07-31 Thread Chris Moller
Take a look at GtkMessageDialog. Three lines rather than one, but it seems to do what you describe. On 07/31/16 16:11, Dan Hitt wrote: For front end web development, javascript provides a very handy alert( ) function. alert("this is a message") just pops up a message for the user to click "ok

Re: javascript alert function analog in gtk, probably some kind of modal dialog, but looking for a quickie

2016-07-31 Thread Dan Hitt
Thanks Chris, That's very helpful, and it indeed works. (So, given the knowledge of what to do, the net does indeed tell exactly which 3 lines to use: one to construct, one to run, one to destroy, as described in http://forum.gtkd.org/groups/GtkD/thread/249/ And this is easy enough to wrap in