Re: assertion
- From: Jean Bréfort <jean brefort normalesup org>
- To: kishore guptha <kguptha gmail com>
- Cc: gtk-list gnome org
- Subject: Re: assertion
- Date: Wed, 10 May 2006 08:09:11 +0200
Le mercredi 10 mai 2006 �1:21 +0530, kishore guptha a �it :
> Hi all,
>
> In function 1, I have created a a dialog widget which has 5 check buttons
> and I am check marking first 2 check buttons.
>
> The dialog widget is being passed as an argument for this function 2. How
>
> will I see which check buttons are checked and which are not.
>
> The declaration for check buttons and dialog widget are global.
>
> I use in function 2
> int r = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(chkbutton2));
>
>
> It is always getting 0 for variable r and the following message.
>
> Gtk-CRITICAL **: file gtktogglebutton.c: line 326
> (gtk_toggle_button_get_active): assertion `GTK_IS_TOGGLE_BUTTON
> (toggle_button)' failed
Clearly, chkbutton2 is not a GtkCheckButton*, otherwise, things should
work. Without more code, it is difficult to diagnose why.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]