From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25865 invoked by alias); 16 Jan 2008 17:39:46 -0000 Received: (qmail 25855 invoked by uid 22791); 16 Jan 2008 17:39:46 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 Jan 2008 17:39:28 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m0GHdPS5009493; Wed, 16 Jan 2008 12:39:25 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0GHdOL2025002; Wed, 16 Jan 2008 12:39:24 -0500 Received: from lindt.uglyboxes.com (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0GHdNwU023189; Wed, 16 Jan 2008 12:39:24 -0500 Message-ID: <478E3FB8.5030302@redhat.com> Date: Wed, 16 Jan 2008 17:39:00 -0000 From: Keith Seitz User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: "McCabe, John (UK)" CC: insight@sourceware.org Subject: Re: Adding buttons to the Source window toolbar. References: <2F2A01C2A97A1747A3AE56C847117FB98B6AEB@uk-ex2003.emssatcom.com> In-Reply-To: <2F2A01C2A97A1747A3AE56C847117FB98B6AEB@uk-ex2003.emssatcom.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00003.txt.bz2 McCabe, John (UK) wrote: > Essentially what we want to do in response to pressing the new button > is: > > call TCT_Control_Interrupts(0x8000) > next > call TCT_Control_Interrupts(0xff00) > > (where TCT_Control_Interrups() is a Nucleus function). Yeah, this should be possible. Unfortunately, adding buttons to the source window toolbar is not supported by our plugin architecture, so you'll have to hack the source window source code directly. You can add a button by modifying the code in srcbar.itcl, method "create_buttons". Just follow the examples there. If you run into any problems, just let me know (via the list). Keith