Re: GtkCellRendererText saves on key-press-event

2013-12-20 Thread Mohd Naim Inche Ibrahim
Hi Phillip Thanks for the quick reply. I'll give it a try when I get my hands on the code. Have a nice holiday Regards, Naim On Fri, Dec 20, 2013 at 11:41 PM, Phillip Wood wrote: > On 20 Dec 2013, at 09:22, "Mohd Naim Inche Ibrahim" > wrote: > > > > > Hi > > > > I'm new here, my first post.

Re: GtkCellRendererText saves on key-press-event

2013-12-20 Thread Phillip Wood
On 20 Dec 2013, at 09:22, "Mohd Naim Inche Ibrahim" wrote: > > Hi > > I'm new here, my first post. Thanks for reading. > > I'd like to save entry in GtkCellRendererText when I click 'Tab' and move > to next GtkCellRendererText. > https://bug151469.bugzilla-attachments.gnome.org/attachment.cgi

GtkCellRendererText saves on key-press-event

2013-12-20 Thread Mohd Naim Inche Ibrahim
Hi I'm new here, my first post. Thanks for reading. I'd like to save entry in GtkCellRendererText when I click 'Tab' and move to next GtkCellRendererText. In main(), g_signal_connect(G_OBJECT(note), "key-press-event", G_CALLBACK(on_keypressevent), NULL); In on_k

Keys Do Not Emit Key Press Event for Treeview Widget

2012-01-15 Thread Rob Thornton
My application contains a treeview widget. The delete and insert keys insert and delete rows as expected but I need to trap their events so I can modify their behaviour. I also need to modify the Escape key. I tried connecting to "key-press-event" but does not seem to work nor via t

Re: Widget name is 0x0 after GtkWidget key-press-event

2010-08-14 Thread dhk
On 08/13/2010 04:50 PM, John Stebbins wrote: > On 08/13/2010 06:22 AM, Tadej Borovšak wrote: >> Hi. >> >> Your problems are caused by the fact that GtkBuilder since GTK+-2.20 >> doesn't set widget's "name" property to "id" field anymore. API >> docs[1] warn about this change (see the first "Note" s

Re: Widget name is 0x0 after GtkWidget key-press-event

2010-08-13 Thread John Stebbins
On 08/13/2010 06:22 AM, Tadej Borovšak wrote: > Hi. > > Your problems are caused by the fact that GtkBuilder since GTK+-2.20 > doesn't set widget's "name" property to "id" field anymore. API > docs[1] warn about this change (see the first "Note" section in > description). > > Tadej > > [1] > http:

Re: Widget name is 0x0 after GtkWidget key-press-event

2010-08-13 Thread Tadej Borovšak
Hi. Your problems are caused by the fact that GtkBuilder since GTK+-2.20 doesn't set widget's "name" property to "id" field anymore. API docs[1] warn about this change (see the first "Note" section in description). Tadej [1] http://library.gnome.org/devel/gtk/stable/GtkBuilder.html#GtkBuilder.d

Re: Widget name is 0x0 after GtkWidget key-press-event

2010-08-13 Thread dhk
On 08/13/2010 07:56 AM, dhk wrote: > The GtkWidget key-press-event signal doesn't seem to be filling in the > name of the widget. When I print the name in the debugger it's 0x0. > > I haven't run the program in a couple of months, but the last time I did > every

Widget name is 0x0 after GtkWidget key-press-event

2010-08-13 Thread dhk
The GtkWidget key-press-event signal doesn't seem to be filling in the name of the widget. When I print the name in the debugger it's 0x0. I haven't run the program in a couple of months, but the last time I did everything worked. Since then I've been keeping up on the up

Re: Generating key press event using gtk button

2009-08-14 Thread Eric Squires
you off in the right direction or someone more informed will respond soon with more info. Eric Squires On Fri, Aug 14, 2009 at 11:26 AM, Sulabh Bista wrote: > Dear all: > > I am trying to write a virtual keyboard like application that can generate > keyboard key press event on clic

Generating key press event using gtk button

2009-08-14 Thread Sulabh Bista
Dear all: I am trying to write a virtual keyboard like application that can generate keyboard key press event on click of a button. How do I make a "button click" generate a "key press" event ? An example of such program is xvkbd (http://homepage3.nifty.com/tsato/xvkbd/ ). R

Simulate a key press event?

2009-04-07 Thread Yu Feng
Dear list, Could anyone help me to redirect a key press event from another application's window to a GtkWidget? My current solution (which works with a lot of warnings) is 1 Create a Gdk Foreign Window on the XID of the to be grabbed window. 2 Add a gdk filter on the foreign gdk window, 3

Re: key-press-event event clears cell in treeview

2008-08-28 Thread dhk
dhk wrote: I have a key-press-event connected to my treeview so a Tab can be used to navigate through the cells. It work well except that when the Tab is pressed it clear all the data in the cell. If I use the mouse to move to another cell the data remains. My callback doesn't touc

key-press-event event clears cell in treeview

2008-08-26 Thread dhk
I have a key-press-event connected to my treeview so a Tab can be used to navigate through the cells. It work well except that when the Tab is pressed it clear all the data in the cell. If I use the mouse to move to another cell the data remains. My callback doesn't touch the data. A

Re: How to get all the key press event in a textview?

2007-09-28 Thread Yeti
gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 320, 240); g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); view = gtk_text_view_new(); g_signal_connect(view, "key-pres

How to get all the key press event in a textview?

2007-09-28 Thread Magicloud Magiclouds
Dear all, As in Emacs, something like Ctrl+Alt+a work, even in a gnome-terminal. But in my simple gtk program, I just get ctrl+65507(keyval) in key release event. How to make it work? Thanks. ___ gtk-app-devel-list mailing list gtk-app-devel-li

Re: Key Press Event!

2006-08-21 Thread Paul Pogonyshev
Madhusudan E wrote: > I am defining a new widget and within the class_init I am mapping > > Widget_class->key_press_event to local key press event handling function. > > But none of the keypress event is caught by my local function. Maybe you forgot to activate key even

Key Press Event!

2006-08-21 Thread Madhusudan E
Hi All, I am defining a new widget and within the class_init I am mapping Widget_class->key_press_event to local key press event handling function. But none of the keypress event is caught by my local function. Pls give out ur suggestions over this. Thanks, Madhusudan E, HT

Re: Handling (control - shift - s) in Key Press Event

2006-05-19 Thread John Cupitt
On 5/19/06, Mystilleef <[EMAIL PROTECTED]> wrote: How does one trap (control - shift - s) in a key press event callback? Something like (untested): if( event->keyval == GDK_S && (event->state & GDK_SHIFT_MASK) && (event->state & GD

Handling (control - shift - s) in Key Press Event

2006-05-19 Thread Mystilleef
Hello, How does one trap (control - shift - s) in a key press event callback? Thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

RE: synthesize-key-press-event

2006-01-27 Thread Marc Santhoff
Am Freitag, den 27.01.2006, 08:37 -0600 schrieb Boncek, John: > Here is a copy of Marc's message. I presume the attachment will make it > to you but not the list (would be nice if that worked). Since it tends to be a FAQ, is someone reading this list who can integrate the snippet in a matching o

RE: synthesize-key-press-event

2006-01-27 Thread Boncek, John
04 PM To: gtk-app-devel-list@gnome.org Subject: RE: synthesize-key-press-event I need to do the same thing but the link doesn't provide the referenced example. Can Marc or John please provide it? Or someone else? Thanks. -- View this message in context: http://www.nabble.com/synthesize-key-p

RE: synthesize-key-press-event

2006-01-26 Thread Alex Aycinena (sent by Nabble.com)
I need to do the same thing but the link doesn't provide the referenced example. Can Marc or John please provide it? Or someone else? Thanks. -- View this message in context: http://www.nabble.com/synthesize-key-press-event-t404320.html#a2611834 Sent from the Gtk+ - Apps Dev forum at Nabbl

RE: synthesize-key-press-event

2005-10-14 Thread Boncek, John
:47 PM To: gtk-app-devel-list@gnome.org; [EMAIL PROTECTED] Subject: synthesize-key-press-event I need to send a key-press-event or in some other way communicate the equivalent of a keypress (not coming from the keyboard). I found the following postings in the gtk-app-devel-list archive about this

synthesize-key-press-event

2005-10-13 Thread Boncek, John
I need to send a key-press-event or in some other way communicate the equivalent of a keypress (not coming from the keyboard). I found the following postings in the gtk-app-devel-list archive about this, but the link no longer works. Can anyone send or post an example? how can I emit a