From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6951 invoked by alias); 4 Feb 2002 21:32:23 -0000 Mailing-List: contact sourcenav-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sourcenav-owner@sources.redhat.com Received: (qmail 6823 invoked from network); 4 Feb 2002 21:32:22 -0000 Received: from unknown (HELO shell4.bayarea.net) (209.128.82.1) by sources.redhat.com with SMTP; 4 Feb 2002 21:32:22 -0000 Received: from modrick (209-128-79-218.BAYAREA.NET [209.128.79.218]) by shell4.bayarea.net (8.9.3/8.9.3) with SMTP id NAA23632 for ; Mon, 4 Feb 2002 13:32:21 -0800 (envelope-from supermo@bayarea.net) Date: Mon, 04 Feb 2002 14:08:00 -0000 From: Mo DeJong To: sourcenav Subject: [Patch] Select the first time the build window is opened Message-Id: <20020204133046.1da8946d.supermo@bayarea.net> Organization: House of Mirth X-Mailer: Sylpheed version 0.4.99cvs6 (GTK+ 1.2.7; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-q1/txt/msg00056.txt.bz2 Here is a simple patch that will select the target the first time the build Window is opened. I seem to remember this working in the 4.5 version but it became broken at some point during the 5.0 development cycle. Since this is a small change I assume it will be covered by the "Small changes can be accepted without a copyright assignment form on file" text from the contrib webpage. Mo 2002-02-04 Mo DeJong * gui/makepane.tcl (Make): When initially opening the build window select the target. --- gui/makepane.tcl Mon Feb 26 09:15:16 2001 +++ gui/makepane.tcl Mon Feb 4 00:19:27 2002 @@ -121,7 +121,9 @@ # Selecting the last target used, if any. if {! [catch {paf_db_proj get -key IDEMakeCurrentTarget} targ]} { - set target $targ + if {![string equal $targ ""]} { + set target $targ + } } ${entries}.targets selecttext ${target}