Blinking light?

2001-10-21 Thread Sanjay Bhatnagar
Hi, I have an application which receives data from a socket and displays it on the screen. I wish to have a sort of a blinking-light on the panel everything some data arrives on the socket. Is there any remade widget for this? Alternatively, can an already existing widget can be used for

Re: Blinking light?

2001-10-21 Thread Skip Montanaro
Sanjay I wish to have a sort of a blinking-light on the panel Sanjay everything some data arrives on the socket can an already Sanjay existing widget can be used for this purpose? Seems like an event box with two alternating pixmaps would do the trick... -- Skip Montanaro

Re: Blinking light?

2001-10-21 Thread rsteinke
From: Havoc Pennington [EMAIL PROTECTED] Just use GtkDrawingArea and draw a colored rectangle in there, or GtkPixmap and keep swapping between a couple pixmaps, for example. This reminds me of something. A while back on one of the lists, someone said something about GtkDrawingArea being

Simple question:How to destroy a child window?

2001-10-21 Thread Pengjun Pei
Hi,I made a program containing a main window and may pop up a new window. But I always have problems in destroying the windows. Seems gtk_main_quit() not a good idea Is gtk_quit_add_destroy(gtk_main_level(),GTK_OBJECT(widget)); return(TRUE) the correct thing to do? I tried but it