Re: Which toplevel window is on top?

2015-12-21 Thread Richard Shann
On Sun, 2015-12-20 at 19:22 +, Emmanuele Bassi wrote: > Hi; > > On 20 December 2015 at 18:01, Richard Shann wrote: > > I would like to know which of the top-level windows in my application is > > on top. Is there a way of doing this? I see that > > You can only see

gtk_text_view_im_context_filter_keypress - howto replace Tab with 4-spaces?

2015-12-21 Thread David C. Rankin
All, I am having trouble using gtk_text_view_im_context_filter_keypress to catch the 'Tab' keypress and replace the tab with 4-spaces instead. I can catch the keypress just fine, but I cannot replace the tab with 4-spaces in my textview using gtk_text_view_im_context_filter_keypress. I have

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

2015-12-21 Thread Liam R. E. Quin
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");

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

2015-12-21 Thread David C. Rankin
On 12/21/2015 02:57 AM, Liam R. E. Quin wrote: 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)) {