On Sun, Jan 15, 2012 at 10:46:21PM +0100, David Ne??as wrote: > Date: Sun, 15 Jan 2012 22:46:21 +0100 > From: David Ne??as <y...@physics.muni.cz> > Subject: Re: any easy way of having a YES/NO dialog return a 1 or 0? > To: Gary Kline <kl...@thought.org> > Cc: GTK Devel List <gtk-app-devel-list@gnome.org> > > On Sun, Jan 15, 2012 at 01:26:53PM -0800, Gary Kline wrote: > > is there a way of having a YES/NO dialog [that asks a qauestion] > > return a truth value? i'm looking for something like the macro > > eprint(...) that James Steward sent in late december. > > Use gtk_message_dialog_new() with GTK_BUTTONS_YES_NO buttons type. > Your boolean is then equal to > > gtk_dialog_run(dialog) == GTK_RESPONSE_YES > > (which also runs the dialog but you can, of course, separate the > execution and comparison). > > > if i eventually figured out a similar marcro that included: > > > > GTK_STOCK_YES,1, > > GTK_STOCK_NO, 0... > > I don't understand what stock item names have to do with this. > > Yeti
this is why i asked the question! thank you, gary > -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list