Re: key press events SUPR
- From: martin opengeomap org
- To: gtk-app-devel-list gnome org
- Subject: Re: key press events SUPR
- Date: Thu, 17 Apr 2008 06:05:15 -0500 (CDT)
Alexander Semenov escribió:
Hi, Martin.
From the GTK+ documentation for GdkEventKey:
guint keyval; the key that was pressed or released.
See the <gdk/gdkkeysyms.h> header file for a complete list of GDK key
codes.
Thanks:
puts Gdk::Keyval::GDK_Delete
@view_venta.signal_connect("key-press-event") do |widget,event|
if event.keyval==Gdk::Keyval::GDK_Delete
selection = @view_venta.selection
borrar_l=[]
selection.selected_each do |model, path, iter|
borrar_l <<(Gtk::TreeRowReference.new(model,path))
#model.remove(iter)
end
borrar_l.each do |rowref|
(path = rowref.path) and
@list_store_venta.remove(@list_store_venta.get_iter(path))
end
end
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]