Re: any easy way of having a YES/NO dialog return a 1 or 0?

2012-01-17 Thread David Nečas
On Tue, Jan 17, 2012 at 04:12:51PM +0900, Tristan Van Berkom wrote: Even in english, these boolean YES/NO questions can seem ambiguous, If you use wordy and convoluted questions such as Are you sure you want to quit without saving then nothing can help the poor users. Of course, they are

Re: any easy way of having a YES/NO dialog return a 1 or 0?

2012-01-17 Thread Tristan Van Berkom
2012/1/17 David Nečas y...@physics.muni.cz: On Tue, Jan 17, 2012 at 04:12:51PM +0900, Tristan Van Berkom wrote: Even in english, these boolean YES/NO questions can seem ambiguous, If you use wordy and convoluted questions such as   Are you sure you want to quit without saving then nothing

Re: any easy way of having a YES/NO dialog return a 1 or 0?

2012-01-17 Thread Allin Cottrell
On Tue, 17 Jan 2012, Tristan Van Berkom wrote: 2012/1/17 David Nečas y...@physics.muni.cz: Hence    Are you sure you want to quit without saving ? Should typically have the answers: Save Quit is nonsense.  This question should not occur in a sensible GUI no matter what answers are

Re: is thaere a way to exit(1)?

2012-01-17 Thread Stefan Sauer
On 01/15/2012 12:51 AM, Gary Kline wrote: On Fri, Jan 13, 2012 at 10:09:43PM +0100, David Ne??as wrote: On Fri, Jan 13, 2012 at 11:59:45AM -0800, Gary Kline wrote: I finally know =where= i want to exit my gtk program, but exit just doesn't break me out of my while() loop. what's the magin?

FileChooserButton set_filename doesn't work as expected

2012-01-17 Thread Oleg Ivanenko
Hi, all! I have small gtk2-perl application where I try to change currently selected file name of FileChooserButton widget. Everything going fine, set_filename returns TRUE, until I have changed file name manually opening dialog. Does'nt matter what I selecting in dialog. After that I can't

Re: Re : Iconview stock items

2012-01-17 Thread Nicolas SOUBEIRAN
Le 17/01/2012 02:02, Neil Munro a écrit : On 16 January 2012 19:01, Nicolas SOUBEIRANnicolas.soubei...@gmail.com wrote: Use gtk_widget_render_icon_pixbuf If you need a custom size, you may look after gtk_icon_size_register Is this a gtk3 function as I cannot find it as a function of a gtk2

Re: Re : Iconview stock items

2012-01-17 Thread Neil Munro
On 17 January 2012 18:20, Nicolas SOUBEIRAN nicolas.soubei...@gmail.com wrote: Le 17/01/2012 02:02, Neil Munro a écrit : On 16 January 2012 19:01, Nicolas SOUBEIRANnicolas.soubei...@gmail.com  wrote: Use gtk_widget_render_icon_pixbuf If you need a custom size, you may look after

GtkTreeView row color with CSS

2012-01-17 Thread john beritz
How can I change the unselected row color in a GtkTreeView using CSS in Gtk3? I've tried even-row-color, -GtkWidget-even-row-color and GtkTreeView row:nth-child(even) /* COMPILE WITH: gcc -Wall -o tree1 `pkg-config --cflags --libs gtk+-3.0` tree1.c */ #include gtk/gtk.h enum { LIST_ITEM = 0,

Re: is thaere a way to exit(1)?

2012-01-17 Thread Gary Kline
On Tue, Jan 17, 2012 at 04:34:32PM +0100, Stefan Sauer wrote: Date: Tue, 17 Jan 2012 16:34:32 +0100 From: Stefan Sauer enso...@hora-obscura.de Subject: Re: is thaere a way to exit(1)? To: gtk-app-devel-list@gnome.org On 01/15/2012 12:51 AM, Gary Kline wrote: On Fri, Jan 13, 2012 at

Re: is thaere a way to exit(1)?

2012-01-17 Thread Michael Torrie
On 01/17/2012 03:35 PM, Gary Kline wrote: well, it =is= busy. it's looping endlessly; but then i limited it to 5 loops with a for-loop. same. (i thought my programming skills were better that having to use the debugger, but may have to.) before, i am going to scp