Cut 'n Paste prob solved & Q



Hi all

A few weeks ago I reported a problem in gtk where pasting text into an
editable widget would make it segfault. I just installed the most recent
gtk snapshot (last night's) and found that the problem is now gone. Thanks
to whoever made the changes :-)

This resolution of the problem may be due to changes in gtkselection.c. I
note that the function gtk_selection_add_handler is now gone from
gtk_selection.h, which breaks the spreadsheet widget of Adrian Feiguin :-(

The calls in that widget were of the form 
gtk_selection_add_handler (GTK_WIDGET(shentry), GDK_SELECTION_PRIMARY,
                             GDK_TARGET_STRING, handler_func,
                             NULL);
(The second and third arguments do not occur in the normal signal handler
install function.)

My question is this: how can I get the same functionality with the newer
versions of GTK? Reading gtk_selection.[ch] was not helpful...

Alternatively, does anyone know of a newer (non-gnome) spreadsheet widget
that I can use? 

Regards

Conrad

*-----------------------------------------*                                  
| Conrad Steenberg                        |                                  
| Caltech, Mail Code 220-47               |                                  
| Pasadena, CA, 91125                     |                                  
| e-mail: conrad@srl.caltech.edu          |                                  
| Tel: (626) 395-2964 Fax: (626) 449-8676 |                                  
*-----------------------------------------*                                  




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