From patchwork Wed Jul 8 00:11:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 29560 Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 9C0ADB7085 for ; Wed, 8 Jul 2009 10:22:13 +1000 (EST) Received: by ozlabs.org (Postfix) id A36CBDE11E; Wed, 8 Jul 2009 10:20:22 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 9A9EBDE26E for ; Wed, 8 Jul 2009 10:20:22 +1000 (EST) X-Original-To: cbe-oss-dev@ozlabs.org Delivered-To: cbe-oss-dev@ozlabs.org Received: from hera.kernel.org (hera.kernel.org [140.211.167.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 520CDDDE18; Wed, 8 Jul 2009 10:18:20 +1000 (EST) Received: from hera.kernel.org (IDENT:U2FsdGVkX1+iIUfoh3VjMCb6PtA7arWsd6s/Vrf2uGw@localhost [127.0.0.1]) by hera.kernel.org (8.14.2/8.14.2) with ESMTP id n680IFUK026645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Jul 2009 00:18:15 GMT Received: (from geoff@localhost) by hera.kernel.org (8.14.2/8.13.1/Submit) id n680IEKd026644; Wed, 8 Jul 2009 00:18:14 GMT Message-Id: <20090708001136.173890970@am.sony.com> User-Agent: quilt/0.47-1 Date: Tue, 07 Jul 2009 17:11:52 -0700 From: Geoff Levand To: Jeremy Kerr In-Reply-To: <20090708001134.934244536@am.sony.com> References: <20090708001134.934244536@am.sony.com> Content-Disposition: inline; filename=nc-fix-scroll.diff X-Virus-Scanned: ClamAV 0.93.3/9541/Tue Jul 7 17:31:53 2009 on hera.kernel.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hera.kernel.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Wed, 08 Jul 2009 00:18:15 +0000 (UTC) Cc: cbe-oss-dev@ozlabs.org Subject: [Cbe-oss-dev] [patch 18/31] petitboot: Fix CUI scroll X-BeenThere: cbe-oss-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Discussion about Open Source Software for the Cell Broadband Engine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org A call to pos_menu_cursor() is needed when items are added to menu. Signed-off-by: Geoff Levand --- ui/ncurses/nc-cui.c | 3 +++ 1 file changed, 3 insertions(+) --- a/ui/ncurses/nc-cui.c +++ b/ui/ncurses/nc-cui.c @@ -366,6 +366,9 @@ static int cui_device_add(struct device item_count(cui->main->ncm) + 1); } + /* FIXME: need to make item visible somehow */ + menu_driver(cui->main->ncm, REQ_SCR_UPAGE); + menu_driver(cui->main->ncm, REQ_SCR_DPAGE); set_current_item(cui->main->ncm, selected); if (cui->current == &cui->main->scr)