Re: Destroy Spin Button on value change



>So how can I fix it?  I couldn't find an entry point between the
>value-changed emmision and real_spin to head off the error.  I could use
>the value changed handler to set a flag or set up another signal handler
>to delete the spin button 'later', but what can I hook into that will be
>called immediately after the spin button has finished updating but not
>before.

	gint delete_a_widget (void *arg)
	{
		gtk_widget_destroy ((GtkWidget *) arg);
		return FALSE;
	}	


	GtkWidget *spin_button;	
	.
	.	
	.
	gtk_idle_add (delete_a_widget, spin_button);


not that i'm saying that your design is one i agree with, but thats
how i'd accomplish your particular subgoal.

--p




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]