Re: drawing a line
- From: Sven Neumann <sven gimp org>
- To: Shiraz Baig <shiraz_baig yahoo com>
- Cc: gtk-list gnome org
- Subject: Re: drawing a line
- Date: 31 Jan 2002 14:47:50 +0100
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]