Xlib: unexpected async reply

2006-04-15 Thread Fernando ApesteguĂ­a
Hi, it's me again... now a bit embarrassed I found the problem after more and more debugging. The read_data_from_file() function was a function with variable number of parameters implemented with va_list... Due to a stupid mistake this function did not return when a certain number of parameter

Xlib: unexpected async reply

2006-04-15 Thread Fernando ApesteguĂ­a
Hi list! I get this error when runing my GTK application: Xlib: unexpected async reply (sequence 0xdfd)! (Te sequence number varies.) A little explanation about the application: It runs two threads. One of them is runing inside the gtk_main() loop. The other one, periodically reads from differ

Re: Problem: hiding window

2006-04-15 Thread Chris Vine
On Saturday 15 April 2006 05:21, Deependra Shekhawat wrote: > Hello friends, > > I want to hide a window when user clicks either on the > close button or press the close (CROSS) on the > top-right of every window. > Here is my code: > > GtkWidget *window1; > GtkWidget *butt_close; > > g_signal_conn

Re: Problem: hiding window

2006-04-15 Thread Daniel Pekelharing
On Fri, 2006-04-14 at 21:21 -0700, Deependra Shekhawat wrote: > void on_butt_close_clicked(GtkButton *button,gpointer > user_data) > { >gtk_widget_hide((GtkWidget *)user_data); > } I may be wrong about this, but I think you want to write this function like: gint on_butt_close_clicked(GtkButto