bug in the key binding system ?



	Hello,

	I think there is a bug in the key bindings and 	
	GtkEditable signals.
	I've got the following in my gtkrc :

	binding "test"
	{
	  bind "F3" {
	  "debug-msg" ("Test Msg")
	  }
	}

	class "GtkEditable" binding : highest "test"
	class "GtkEntry" binding : highest "test"

	when I'm pressing F3 in a GtkEntry widget not happen.
	I've investigated a bit : when I press F3 
	gtk_bindings_activate is called but not cannot find any
	binding.
	I think the binding activation is occurring on the wrong 	
	widget, here GtkWindow (see stack trace attached).


	Could somebody tell me if I'm making a mistake in the
	gtkrc settings or if it's a bug ?
	(If it's a bug I'll try to fix it).

	    Thanks a lot,

	    Erwann





_______________________________________________________
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html
#0  gtk_bindings_activate (object=0x2aed8, keyval=65485, modifiers=32) at gtkbindings.c:875
#1  0xff349d5c in gtk_widget_real_key_press_event (widget=0x2aed8, event=0x3d390) at gtkwidget.c:2684
#2  0xff35667c in gtk_window_key_press_event (widget=0x2aed8, event=0x3d390) at gtkwindow.c:1253
#3  0xff2c1830 in gtk_marshal_BOOL__POINTER (object=0x2aed8, func=0xff355fd8 <gtk_window_key_press_event>, func_data=0x0, args=0xffbed870) at gtkmarshal.c:28
#4  0xff30260c in gtk_signal_real_emit (object=0x2aed8, signal_id=26, params=0xffbed870) at gtksignal.c:1492
#5  0xff2ff624 in gtk_signal_emit (object=0x2aed8, signal_id=26) at gtksignal.c:552
#6  0xff34a2f4 in gtk_widget_event (widget=0x2aed8, event=0x3d390) at gtkwidget.c:2860
#7  0xff2c16fc in gtk_propagate_event (widget=0x33fe0, event=0x3d390) at gtkmain.c:1298
#8  0xff2c05f4 in gtk_main_do_event (event=0x3d390) at gtkmain.c:770
#9  0xff1ca070 in gdk_event_dispatch (source_data=0x3d390, current_time=0xffbede60, user_data=0x0) at gdkevents.c:2129
#10 0xff165e80 in g_main_dispatch (dispatch_time=0xffbede60) at gmain.c:656
#11 0xff16671c in g_main_iterate (block=-15156948, dispatch=1) at gmain.c:877
#12 0xff166930 in g_main_run (loop=0x355e8) at gmain.c:935
#13 0xff2bfcec in gtk_main () at gtkmain.c:476
#14 0x10e4c in main (argc=1, argv=0xffbee04c) at HelloWorld.c:44





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