how to have a dialog ask user if he want to type AGAIN?

2012-01-14 Thread Gary Kline
ok, one function runs in a recursive loop, endlessly. i could do this differently, say from main. that is my question: how do i get the value 1 or TRUE back from a dialogue that asks simply: "Talk again?" i have a slice of code that is a dialog with an OK button. gary -- Gary Kline kl...

Iconview stock items

2012-01-14 Thread Neil Munro
I am working with an icon view and am trying to load stock items into the gdk_pixbuf_new_from_file( ) but it's not working, I assume that is perhaps because I am using the function wrong, is there a way to do what I am trying to do? I am following the tutorial here: http://zetcode.com/tutorials/gt

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

2012-01-14 Thread Gary Kline
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? > > exit() *does* terminate the pr

Re: Need control of filename entry area in gtkfilechooser

2012-01-14 Thread Ferdinand Ramirez
Thanks for the response. Do you know if I can create a custom keymap and set it from the code? If so, how do I do it? It is important for me to control it from the code. -Ferdinand --- On Fri, 1/13/12, Vivien Malerba wrote: From: Vivien Malerba Subject: Re: Need control of filename entry area

Re: Real time removal of toolitem

2012-01-14 Thread Neil Munro
Strange, I don't know why perhaps I had a typo I missed but it's working now with a simple show/hide: // Deal with terminal now, since it would just waste cpu cycles dealing with it in a for loop if( g_strrstr( sets->terminal, ":false" ) ) gtk_widget_hide( GTK_WIDGE

Re: Real time removal of toolitem

2012-01-14 Thread David Nečas
On Sat, Jan 14, 2012 at 12:34:10PM +, Neil Munro wrote: > I was wondering if it is possible to remove a tool item from a > toolbar instantly, = from gi.repository import Gtk def modify(b, t): if t.get_n_items() == 1: b.set_stoc

Real time removal of toolitem

2012-01-14 Thread Neil Munro
Hey I was wondering if it is possible to remove a tool item from a toolbar instantly, I am working with some preferences on my app and want to have the preference changes displayed instantly, I have tried to destroy the widget but it still works, am I missing something or is it just not suppo