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:

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_WIDGET(