James McCoy wrote:

> With the attached vimrc, which disables blinking for the guicursor, a message
> like
> 
>   (gvim:264919): GLib-CRITICAL **: Source ID 51 was not found when attempting 
> to remove it
> 
> will be logged to the console after starting GTK gvim and pressing a
> key.  This is due to the blink_timer being removed, but not reset, in
> gui_mch_start_blink and then removed again in gui_mch_stop_blink.
> 
> Although the problem is old, the message is new because GLib 2.40.0
> introduced the following change:
> 
>    - g_source_remove() will now throw a critical in the case that you
>      try to remove a non-existent source.  We expect that there is some
>      code in the wild that will fall afoul of this new critical but
>      considering that we now reuse source IDs, this code is already
>      broken and should probably be fixed.
> 
> The attached patch fixes this.

I'm glad you could track this down.  Thanks for the patch.

-- 
Micro$oft: where do you want to go today?
    Linux: where do you want to go tomorrow?
  FreeBSD: are you guys coming, or what?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui