Re: gtk_text_view_im_context_filter_keypress - howto replace Tab with 4-spaces?



On Mon, 2015-12-21 at 02:22 -0600, David C. Rankin wrote:

[...]
 
             if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW 
(app->view),
                                                           event)) {
                 printf ("  Tab key handled by im_context\n");

This is the wrong way round. I think that
if gtk_text_view_im_context_filter_keypress returns true you're
supposed to return TRUE without doing anything.

You may find the devhelp program useful - search for this function in
the index and you'll see an example.

Liam

-- 
Liam R. E. Quin <liam holoweb net>



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