Re: detect ctrl+c in key_press_event handler

2010-02-06 Thread Yann Leboulanger
Ken Resander wrote: > Hi Yann, > > I cannot think of anything else. > > If all Russian keyboards are like the one tried, then just change the > documentation in Russian to Ctrl+Cyrillic_es instead of Ctrl+C used on > keyboards that have a key marked 'C'. After all it works. > > Ken \That's not

Re: detect ctrl+c in key_press_event handler

2010-02-06 Thread Ken Resander
ger wrote: From: Yann Leboulanger Subject: Re: detect ctrl+c in key_press_event handler To: gtk-list@gnome.org Date: Sunday, 7 February, 2010, 5:36 AM Yann Leboulanger wrote: > Ken Resander wrote: >> Odd, you seem to be getting 0 for both the Ctrl key and letter-C key. >> >>

Re: detect ctrl+c in key_press_event handler

2010-02-06 Thread Yann Leboulanger
Yann Leboulanger wrote: > Ken Resander wrote: >> Odd, you seem to be getting 0 for both the Ctrl key and letter-C key. >> >> If the keyboard works and you can use it for other applications, then >> keypresscallback >> really should return non-zero character code values. >> >> I don't know pygtk, b

Re: detect ctrl+c in key_press_event handler

2010-02-01 Thread Yann Leboulanger
Ken Resander wrote: > Odd, you seem to be getting 0 for both the Ctrl key and letter-C key. > > If the keyboard works and you can use it for other applications, then > keypresscallback > really should return non-zero character code values. > > I don't know pygtk, but if there are other keyboard

Re: detect ctrl+c in key_press_event handler

2010-01-31 Thread Ken Resander
ess-event",   G_CALLBACK (keypresscallback), NULL ) ;    gtk_widget_show_all(window);    gtk_main();    } Also, could you use another standard western-european keyboard to see if it behaves differently? --- On Sun, 31/1/10, Yann Leboulanger wrote: From: Yann Leboulanger Subject

Re: detect ctrl+c in key_press_event handler

2010-01-31 Thread Yann Leboulanger
Ken Resander wrote: > I am in nearly unknown territory, since mostly I have been in the ASCII world > with chars from a to z. > > Could you check the event.keyval for character 'C' on your keyboard and see > what character code is returned. Use printf to view the value. Then use this > value in

Re: detect ctrl+c in key_press_event handler

2010-01-30 Thread Ken Resander
tead of 'C'. Please let me know if it works ( I want to know too!). Ken --- On Sun, 31/1/10, Yann Leboulanger wrote: From: Yann Leboulanger Subject: Re: detect ctrl+c in key_press_event handler To: gtk-list@gnome.org Date: Sunday, 31 January, 2010, 2:06 AM Ken Resander wrote: >

Re: detect ctrl+c in key_press_event handler

2010-01-30 Thread Yann Leboulanger
>keyval == codeforctrlkey ) > { > ctrldown = false ; > } >} > > Ken > > --- On *Sat, 30/1/10, Yann Leboulanger //* wrote: > > > From: Yann Leboulanger > Subject: detect ctrl+c in key_press_event handler > To: gtk-list@

Re: detect ctrl+c in key_press_event handler

2010-01-29 Thread Ken Resander
te: From: Yann Leboulanger Subject: detect ctrl+c in key_press_event handler To: gtk-list@gnome.org Date: Saturday, 30 January, 2010, 5:23 AM Hi all, I'd like to detect a ctrl+C in a key_press_event handler. I wrote (in pygtk): keyc, mod = gtk.accelerator_parse('c') if event.state

detect ctrl+c in key_press_event handler

2010-01-29 Thread Yann Leboulanger
Hi all, I'd like to detect a ctrl+C in a key_press_event handler. I wrote (in pygtk): keyc, mod = gtk.accelerator_parse('c') if event.state & mod and event.keyval == keyc: blabla But that doesn't work on non-latin (russian) keyboard. On those keyboard, keyc is 0 W

how to handle a key_press_event when entering GtkComboBoxEntry

2006-11-26 Thread lao wb
hello, gtk_list I'd like to use a GtkComboBoxEntry the same as an URL entry box, need to handle a Enter key pressed event after finishing editing the box. g_signal_connect((gpointer) comboboxentry1, "key_press_event", G_CALLBACK(on_comboboxentry1_

Re: How to send Key_press_event by event?

2006-04-10 Thread Brijesh
Hi John thanx for the quick reply i dont know the other way of doing it. can you help me put? Brijesh John Cupitt wrote: On 4/10/06, Brijesh <[EMAIL PROTECTED]> wrote: I want to send Key_press_event to the list box by program not by keyboard. This i

Re: How to send Key_press_event by event?

2006-04-10 Thread John Cupitt
On 4/10/06, Brijesh <[EMAIL PROTECTED]> wrote: > I want to send Key_press_event to the list box by program not by keyboard. This is very difficult and unreliable. What are you tryiing to accomplish? There is probably a better way to get the effect you wa

How to send Key_press_event by event?

2006-04-10 Thread Brijesh
Hi all, I want to send Key_press_event to the list box by program not by keyboard. i have seen that it can be done by gtk_signal_emit_by_name but with that function, i knwo that i have to pass the other members also. like pointer to GdkEventKey object. i have seen that there are many members

Re: key_press_event

2005-05-20 Thread Jose Hevia
> > Hello everybody, I would like to know wich key has been pressed when a key_press_event happen. Do you know how can I do that ?? > key_press_hook_function (GtkWidget *widget,GdkEventKey *event) { look at (event->keyval) } To understand the codes: vi /usr/include

key_press_event

2005-05-20 Thread Jean Chapelle
Hello everybody, I would like to know wich key has been pressed when a key_press_event happen. Do you know how can I do that ?? Thanks in advance ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Urgent help about key_press_event

2002-09-05 Thread Matteo Frigerio
Hello at all the list. I have a problem with key_press_event. I have attach a key_press_event handler at the main window of my application. This window contain a GtkHBox with a menu and other things. The problem is that when i press F10 the menu get the focus under linux, under win2000 the system

Can I add a "key_press_event" handler to treeview without removing other handlers?

2002-08-25 Thread mili
Hello, Every one I find that "key_press_event" has been connect to a handler which handle the row selecting. When I connect "key_press_event" to my handler, the row can't be selected. So I have to use "key_release_event". But there's no GDK_2BUTTO

Re: key_press_event

2001-09-12 Thread Vlad Harchev
On Wed, 12 Sep 2001, Tamara wrote: Hi, Use the following for Enter only: gtk_signal_connect(GTK_EDITABLE(entry),"activate",gtk_button_clicked,your_button); > Hi! > I've a window with an entry and a button, I'd like that when I fill the > entry and I press "return" (for example) the button w

key_press_event

2001-09-12 Thread Tamara
Hi! I've a window with an entry and a button, I'd like that when I fill the entry and I press "return" (for example) the button will be clicked. I wrote: gboolean on_entry_key_press_event (GtkWidget *widget,GdkEventKey *event,gpointer user_data) { gtk_butto_clicked (lookup_widget (GTK_WID

Re: key_press_event

2001-01-17 Thread Federico Mena Quintero
,(GtkSignalFunc) configure_event > ,NULL); > gtk_signal_connect(GTK_OBJECT(drawing_area) > ,"key_press_event" > ,(GtkSignalFunc) key_press_event > ,NULL); > gtk_signal_connect(GTK_OBJECT(draw

key_press_event

2001-01-15 Thread Billy Patton
event" ,(GtkSignalFunc) expose_event , NULL); gtk_signal_connect(GTK_OBJECT(drawing_area) ,"configure_event" ,(GtkSignalFunc) configure_event ,NULL); gtk_signal_connect(GTK_OBJECT(drawing_area)

Re: intercepting "key_press_event"

2001-01-11 Thread Havoc Pennington
"Dugas, Alan" <[EMAIL PROTECTED]> writes: > Is there any way of intercepting the "key_press_event" before the GtkEntry > widget contained within a GtkFileSelection widget gets it? If you can get a pointer to the entry in the file selection, then it's eas

intercepting "key_press_event"

2001-01-11 Thread Dugas, Alan
Is there any way of intercepting the "key_press_event" before the GtkEntry widget contained within a GtkFileSelection widget gets it? I have written an app that can be used to access files across a network. I'd like to change the cursor from an arrow to a GDK_WATCH while the G