Your message dated Sun, 6 Apr 2014 11:10:28 -0400 with message-id <[email protected]> has caused the report #743668, regarding vim-gtk: guicursor modifications cause warning messages to be printed to terminal to be marked as having been forwarded to the upstream software author(s) [email protected]
(NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 743668: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743668 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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. Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 05295bf..1cb47b4 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -732,7 +732,10 @@ blink_cb(gpointer data UNUSED) gui_mch_start_blink(void) { if (blink_timer) + { gtk_timeout_remove(blink_timer); + blink_timer = 0; + } /* Only switch blinking on if none of the times is zero */ if (blink_waittime && blink_ontime && blink_offtime && gui.in_focus) {" Configuration file for vim "" Set up options. " First things first. set nocp " Spacing and indentation. set ts=4 set sw=4 set sts=4 set noet set ai " Backups, saving, and statefulness. set uc=0 " No swap file. set nobk " No backups. set vi='20,\"50 " 20 marks and 50 lines. set hi=50 " 50 items in command line history. " Status line. set ru " Turn on ruler. set ls=2 " Always show a status bar for powerline. " Folding. set fdm=marker " Text handling. set spc= " Don't complain about uncapitalized words starting a sentence. set flp=^[-*+]\\+\\s\\+ " Don't indent lines starting with a number and a dot. set fo+=n " Indent lists properly. set tw=80 set bs=indent,eol,start " Loading files. set ml " Modelines are nice. set enc=utf-8 " Always use UTF-8. set wim=longest,full set su=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc " Search. set nohls "" Display settings. if has("gui_running") let &guicursor = &guicursor . ",a:blinkon0" if has("gui_gtk") elseif has("gui_kde") elseif has("gui_x11") else endif elseif &t_Co == 256 else endif " vim: set ts=2 sw=2 sts=2 noet:
--- End Message ---

