need a multi line text widget to respond to 'ENTER'



I have been fighting with the idea of a multi line text widget that
responds to the enter/return key.

I am still not sure how to do it.
I have tried:

  textview6 = gtk_text_view_new_with_buffer(inputBuffer1);

  <snip stuff>

  gtk_widget_add_accelerator (textview6, "activate", accel_group,
                              GDK_Return, 0,
                              GTK_ACCEL_VISIBLE);

And also tried "button-press_event" instead of "activate", but to no
avail. I get a runtime error of:


Gtk-WARNING **: ../../gtk/gtkwidget.c:2653: widget `GtkTextView' has no
activatable signal "activate" without arguments

Gtk-WARNING **: ../../gtk/gtkwidget.c:2653: widget `GtkTextView' has no
activatable signal "button_press_event" without arguments

I have tried to find out more aboutgtk_widget_add_accelerator, and what
sort of arguments it wants in order to do what I want.. but (obviously)
have had no success.

If anyone can help, it would be appreciated! 

Multitudes of thanks

-- 
                Azrael

           ("\''/").___..--'''"-._          
           `0_ O  )   `-.  (     ).`-.__.`) 
           (_Y_.)'  ._   )  `._ `. ``-..-'  
         _..`--'_..-_/  /--'_.' .'          
        ((i).-''  ((i).'  (((.-'         
   
Of all God's creatures there is only one that cannot be made the slave
of the lash. That one is the cat. If man could be crossed with a cat it
would improve man, but it would deteriorate the cat. 

ICQ#52944566




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