windows not send widget to callback



Hello all,

	I'm creating an application that uses GTK2 and your interface 
is made using Glade 2, I attached in each window a signal
key_press_event and in your callback I read in parameter 
*widget what window emitted this signal, but the
*widget is allways NULL, and I can't identify what is the window
that user is pressing.

I have these messages when I run my program
 	
(granmmi:1328): Gtk-CRITICAL **: file gtkwidget.c: line 3614 (gtk_widget_get_name): assertion `GTK_IS_WIDGET (widget)' failed
PRESSIONOU UM TECLA <<
WIDGET = (null)		         << THESE ARE MESSAGES PRINTED WITH printf TO MY CONTROL
 
(granmmi:1328): Gtk-CRITICAL **: file gtkwidget.c: line 3400 (gtk_widget_grab_focus): assertion `GTK_IS_WIDGET (widget)' failed
 
** ERROR **: file keyboard.c: line 44 (move_screen_button): assertion failed: (widget != NULL)
aborting...
Abortado

The windows are Toplevel (I will remove the WM decorations with gtk_window_set_decorated but now they are presents)


What it lacks to windows send your widget ?

Thanks for all help

-- 
Flavio Alberto Lopes Soares
flavio maqplas com br

MAQPLAS Indústria e Comércio de Máquinas LTDA.
http://www.maqplas.com.br



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]