Re: javascript alert function analog in gtk, probably some kind of modal dialog, but looking for a quickie
- From: Chris Moller <moller mollerware com>
- To: gtk-app-devel-list gnome org
- Subject: Re: javascript alert function analog in gtk, probably some kind of modal dialog, but looking for a quickie
- Date: Sun, 31 Jul 2016 16:24:31 -0400
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" 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 gtk equivalent function.
My simple-minded googling hasn't uncovered one, but i may just be too
dense to choose the right combination of search terms.
Of course if no such function exists, i don't think it would be too
hard to gin one up.
And i suppose that i will, just in case, but if one exists then i
would certainly prefer using it because there's probably a lot of
details to get wrong, or produce surprising behavior.
TIA for any info!
dan
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]