Re: drawing a line



Hi,

Shiraz Baig <shiraz_baig yahoo com> writes:

> I want to draw a line when I push a button. I have
> written the following code. It draws line thru two
> alternative signal commands.
> a. Thru the timer function.
> b. Thru the push button.
> 
> It works with the timer function. But it does not work
> with the push button. 

you will need a separate function for the button clicked
callback since it is called with the GtkButton as first
parameter. Alternatively you could use 
gtk_signal_connect_object() which swaps the parameters.


Salut, Sven



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