Re: [gtk-list] key_release_event



I haven't used the perl bindings but it works for me with Gtk+ with the
following code.

gtk_widget_set_events(GTK_WIDGET(window), 
			GDK_EXPOSURE_MASK|
			GDK_KEY_PRESS_MASK|
			GDK_KEY_RELEASE_MASK);
   
  gtk_signal_connect(GTK_OBJECT (window), "key_press_event",
		     GTK_SIGNAL_FUNC(key_press_event), entry);
  gtk_signal_connect(GTK_OBJECT (window), "key_release_event",
		     GTK_SIGNAL_FUNC(key_release_event), entry);

HTH
-- 
		Stephen



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