Pop up menu,when mouse clock with in a textview

2009-08-21 Thread Sreejith S
Hi... I have a textview placed in my gtk window. I need to create a popup menu when i press the right mouse button with in the text view.Actually i tryed something,but not a complete solution.I created "$menu_edit"--menu...textview refereneces are right.. Actually i dont know in which signal this

Re: "widget_class->event" not working

2009-08-21 Thread Patrick M. Rutkowski
I figured it all out, and wrote it up in an article here: http://www.rutski89.com/dynamic/journal.html?name=gtkwidget Sleepiness was already hitting hard while banging away at the keyboard, so please do let me know if you see any mistakes. -Patrick On Fri, Aug 21, 2009 at 3:58 AM, Patrick M. Ru

Re: "widget_class->event" not working

2009-08-21 Thread Patrick M. Rutkowski
Actually, I just figured it out a few moments ago. Adding the following to realize() beings to fix things: GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); I start to get keyboard events and such. However, there's another problem now! Even with GTK_CAN_FOCUS, I still don't get GDK_MOTION_NOTIFY even

Re: "widget_class->event" not working

2009-08-21 Thread Brian J. Tarricone
On 08/20/2009 10:27 PM, Patrick M. Rutkowski wrote: > I've written a test case that anybody can compile and run: > http://www.rutski89.com/static/event_test.c > > It contains the following line of code in the any_event() function: > printf("IT WORKS!\n"); > > That currently does not get printed.