Re: gtk_signal_handler_block: core dump
- From: Ronald Bultje <rbultje ronald bitfreak net>
- To: gtk-list gnome org
- Cc: "Dr . Andrew L . Blais" <onlymice noho com>
- Subject: Re: gtk_signal_handler_block: core dump
- Date: Wed, 14 Mar 2001 10:34:00 +0100
On 2001.03.14 07:21:05 +0100 Dr. Andrew L. Blais wrote:
> I'm trying to learn gtk. So, I'm trying to modify helloworld2 so that it
> has three buttons. The first will gprint "TEST", the second will turn
> the first button off, and the third will turn the first back on. Just an
> exercise:) I've got this far, but although this code compiles, it core
> dumps when I push the second button. I searched the archives, but no
> clue. Could please someone explain what is happening here?
>
> Doc Alb
>
> ----------------------------------------------------------------
> void kill( struct kill_data *kd )
> {
> gtk_signal_handler_block( GTK_OBJECT( kd->b ), (guint) kd->id ) ;
> }
This should be:
void kill( GtkWidget *widget, struct kill_data *kd)
{
gtk_signal_handler_block( GTK_OBJECT( kd->b ), (guint) kd->id ) ;
}
By changing that, it works here.
Ronald
--
---------------------------------------------------.
-- .-. | Ronald Bultje |
-- /V\ | Running: Linux 2.4.2 and OpenBSD 2.8 |
-- // \\ | E-mail : rbultje ronald bitfreak net |
-- /( )\ | WWW : http://ronald.bitfreak.net/ |
-- ^^-^^ | *** Warning: Unix Addicted *** |
---------------------------------------------------'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]