From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: RFC: status icon support Date: Mon, 14 Jan 2008 08:03:54 +0100 Message-ID: <478B095A.2040701@swipnet.se> References: <200801120157.m0C1v6WL020654@oogie-boogie.ics.uci.edu> <87lk6t2p7b.fsf@grepfind.mwolson.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200294262 25296 80.91.229.12 (14 Jan 2008 07:04:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 07:04:22 +0000 (UTC) Cc: Michael Olson , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 14 08:04:44 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JEJNC-0006Dx-OL for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2008 08:04:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEJMo-0002vX-JL for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2008 02:04:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEJMl-0002vP-Is for emacs-devel@gnu.org; Mon, 14 Jan 2008 02:04:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEJMi-0002vC-W2 for emacs-devel@gnu.org; Mon, 14 Jan 2008 02:04:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEJMi-0002v8-RR for emacs-devel@gnu.org; Mon, 14 Jan 2008 02:04:12 -0500 Original-Received: from av10-2-sn2.hy.skanova.net ([81.228.8.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEJMi-0008Go-I4 for emacs-devel@gnu.org; Mon, 14 Jan 2008 02:04:12 -0500 Original-Received: by av10-2-sn2.hy.skanova.net (Postfix, from userid 502) id 10BF338EAD; Mon, 14 Jan 2008 08:04:10 +0100 (CET) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av10-2-sn2.hy.skanova.net (Postfix) with ESMTP id DCEBA37F4C; Mon, 14 Jan 2008 08:04:09 +0100 (CET) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id ADB4B37E45; Mon, 14 Jan 2008 08:04:09 +0100 (CET) User-Agent: Thunderbird 2.0.0.9 (X11/20071031) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86879 Archived-At: Tom Tromey skrev: >>>>>> "Michael" == Michael Olson writes: > > Michael> [ ... excellent bug report ] > Michael> I suspect a race condition. > > Yes, I think you are right. I am not sure but maybe the answer is to > call gtk_main_iteration to flush the gtk event queue. I am testing > that. If that doesn't work, I guess I'll have to learn more about the > Emacs event stuff... scary. I may need help. gdk_window_process_all_updates flushes the event queue. But if there are timers involved, you must do something more complicated as the Emacs main loop does not do Gtk+/Glib timers. Search for xg_process_timeouts/xg_start_timer/xg_stop_timer in gtkutil.c in that case and something similar. Jan D.