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: EMACS_22_BASE: Crash after creating a new frame, gtk_toolbar_set_icon_size? Date: Tue, 07 Aug 2007 13:16:52 +0200 Message-ID: <46B854A4.7080301@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020902060509020407010105" X-Trace: sea.gmane.org 1186485503 32124 80.91.229.12 (7 Aug 2007 11:18:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 11:18:23 +0000 (UTC) To: emacs-devel@gnu.org, Reiner Steib Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 07 13:18:20 2007 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 1IIN4q-000684-JV for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 13:18:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIN4m-0000xp-4B for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 07:18:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIN4i-0000uv-8Q for emacs-devel@gnu.org; Tue, 07 Aug 2007 07:18:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIN4d-0000sE-4B for emacs-devel@gnu.org; Tue, 07 Aug 2007 07:18:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIN4c-0000sB-UG for emacs-devel@gnu.org; Tue, 07 Aug 2007 07:18:02 -0400 Original-Received: from av11-2-sn2.hy.skanova.net ([81.228.8.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IIN4a-0003yu-Bh for emacs-devel@gnu.org; Tue, 07 Aug 2007 07:18:01 -0400 Original-Received: by av11-2-sn2.hy.skanova.net (Postfix, from userid 502) id A39923807A; Tue, 7 Aug 2007 13:17:46 +0200 (CEST) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av11-2-sn2.hy.skanova.net (Postfix) with ESMTP id 832B038223; Tue, 7 Aug 2007 13:17:46 +0200 (CEST) Original-Received: from husetbladh.homeip.net (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 48F6037E50; Tue, 7 Aug 2007 13:17:44 +0200 (CEST) User-Agent: Thunderbird 1.5.0.12 (X11/20070604) In-Reply-To: X-Detected-Kernel: 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:76138 Archived-At: This is a multi-part message in MIME format. --------------020902060509020407010105 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reiner Steib skrev: > report-emacs-bug wrote: > >> Please describe exactly what actions triggered the bug >> and the precise symptoms of the bug: > > Emacs crashed after `M-x w3m RET' which makes a new frame in my setup. > > Emacs is from the EMACS_22_BASE, cvs-updated, bootstrapped and > compiled yesterday with GTK: > >> In GNU Emacs 22.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6) >> of 2007-08-04 on viandante >> Windowing system distributor `The X.Org Foundation', version 11.0.70199902 >> configured using `configure '--prefix=/import/xtra/emacs/RC' '--with-gtk' '--exec-prefix=/import/xtra/emacs/RC-i686'' > >> If Emacs crashed, and you have the Emacs process in the gdb debugger, >> please include the output from the following gdb commands: >> `bt full' and `xbacktrace'. >> If you would like to further debug the crash, please read the file >> [...]/emacs/cvs-EMACS_22_BASE/emacs/etc/DEBUG for instructions. > It looks like some picture file for the tool bar didn't load correctly and we loose track of where we are in the tool bar. Can you try the attached patch? Thanks, Jan D. --------------020902060509020407010105 Content-Type: text/x-patch; name="toolbar.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="toolbar.patch" Index: src/gtkutil.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/gtkutil.c,v retrieving revision 1.106.2.2 diff -c -c -r1.106.2.2 gtkutil.c *** src/gtkutil.c 25 Jul 2007 05:15:51 -0000 1.106.2.2 --- src/gtkutil.c 7 Aug 2007 11:15:08 -0000 *************** *** 3799,3805 **** gtk_container_add (GTK_CONTAINER (weventbox), wbutton); ti = gtk_tool_item_new (); gtk_container_add (GTK_CONTAINER (ti), weventbox); ! gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget), ti, i); } continue; } --- 3799,3805 ---- gtk_container_add (GTK_CONTAINER (weventbox), wbutton); ti = gtk_tool_item_new (); gtk_container_add (GTK_CONTAINER (ti), weventbox); ! gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget), ti, -1); } continue; } *************** *** 3816,3822 **** gtk_container_add (GTK_CONTAINER (weventbox), wbutton); ti = gtk_tool_item_new (); gtk_container_add (GTK_CONTAINER (ti), weventbox); ! gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget), ti, i); /* The EMACS_INT cast avoids a warning. */ --- 3816,3822 ---- gtk_container_add (GTK_CONTAINER (weventbox), wbutton); ti = gtk_tool_item_new (); gtk_container_add (GTK_CONTAINER (ti), weventbox); ! gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget), ti, -1); /* The EMACS_INT cast avoids a warning. */ --------------020902060509020407010105 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------020902060509020407010105--