problem whit a chek button
- From: Mauro Venanzi <jjfnet libero it>
- To: listagtk <gtk-list gnome org>
- Subject: problem whit a chek button
- Date: Thu, 26 Dec 2002 01:16:15 +0100
hi
i wuold like to stop a cicle when
a chebutton turn up
i have found the gtk_toggle_get_active function
i'm tring it ,but i can't stop the cicle whit this function
here is a piece of code
someone can give me an example to do this???
while (1)
{
if(bo=gtk_toggle_button_get_active (checkbutton)==1)
{
//printf ("%d\n ",bo);
ncnt = read(outfd, hn, sizeof(hn));
bo=getpid();
printf ("%d\n ",bo);
if (ncnt > 0)
{
printf("fatto");
fflush(stdout);
sleep(5);
}
}
}
}
}
eccc
--
----
*************************************************************
Universe Creation
....and God wrote:
tar -Uvh BigBeng.tar.gz
#############...unpacking..######################
*************************************************************
Mauro Venanzi linux ru250233
hall2001 athlon-xp rm 135009 on Suse 8.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]