From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S0ppg-0000Xh-SK for mharc-grub-devel@gnu.org; Fri, 24 Feb 2012 02:44:48 -0500 Received: from eggs.gnu.org ([140.186.70.92]:34139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0ppe-0000Xa-MW for grub-devel@gnu.org; Fri, 24 Feb 2012 02:44:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0ppX-0007fd-NN for grub-devel@gnu.org; Fri, 24 Feb 2012 02:44:45 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:41239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0ppX-0007e3-GR for grub-devel@gnu.org; Fri, 24 Feb 2012 02:44:39 -0500 Received: by eaag11 with SMTP id g11so860692eaa.0 for ; Thu, 23 Feb 2012 23:44:38 -0800 (PST) Received-SPF: pass (google.com: domain of phcoder@gmail.com designates 10.14.52.131 as permitted sender) client-ip=10.14.52.131; Authentication-Results: mr.google.com; spf=pass (google.com: domain of phcoder@gmail.com designates 10.14.52.131 as permitted sender) smtp.mail=phcoder@gmail.com; dkim=pass header.i=phcoder@gmail.com Received: from mr.google.com ([10.14.52.131]) by 10.14.52.131 with SMTP id e3mr692305eec.108.1330069478164 (num_hops = 1); Thu, 23 Feb 2012 23:44:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=5dLX51VefOKi4ezfdYvcLkq8Ga8OjqqDbSCSMbkJOFk=; b=tgZgk/1hiauonPZFr7GdPvTUEDQjhKnGdglNAg3kNbztCkxy8Lm4t2xPb6kTaoKXiE rA3zCaXy1lAuZ8ZiTFqwJ5T+UpjJVkBRdF7qElMcENq3crKcijJPqiFv+C2lHk+ZCLdF Q1K3Gbj0nwR8Oql7bb3TPac7L1EWQr63fGcx4= Received: by 10.14.52.131 with SMTP id e3mr530046eec.108.1330069478070; Thu, 23 Feb 2012 23:44:38 -0800 (PST) Received: from debian.x201.phnet (57-234.197-178.cust.bluewin.ch. [178.197.234.57]) by mx.google.com with ESMTPS id n17sm15241100eei.3.2012.02.23.23.44.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Feb 2012 23:44:36 -0800 (PST) Message-ID: <4F473FE2.7050301@gmail.com> Date: Fri, 24 Feb 2012 08:44:34 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120216 Icedove/8.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: The submenu command shows a text-based menu when using a GFX theme. References: <1329961829.75149.YahooMailNeo@web113502.mail.gq1.yahoo.com> <4F45CD9F.7020408@gmail.com> <1330046651.95459.YahooMailNeo@web113503.mail.gq1.yahoo.com> In-Reply-To: <1330046651.95459.YahooMailNeo@web113503.mail.gq1.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 07:44:48 -0000 On 24.02.2012 02:24, Towheed Mohammed wrote: > While 'export theme' fixes the issue more elegantly than what I had, it still results in the theme reloading when the submenu menuentry is selected. Reloading of the theme results in a screen flicker as the terminal window is shown before the theme reloads. > > I cannot code in C nor do I profess to be anywhere close to scripting as you guys, but I think a better solution to fixing the submenu issue would be from source code. > > Is it at all possible to simply load the menuentry items under the submenu command without having to reload the entire theme? If it can be done, wouldn't it prevent the flicker seen as the theme reloads? Problem is that it's possible to do something like: submenu "xyz" { theme=... } And thus change the theme for submenu. > While at it, could you also please fix the keyboard lag that results when a gfx theme is used. This is an issue with many users of gfx themes . > > Thank you. > > Towheed Mohammed > > ----- Original Message ----- > From: Vladimir 'φ-coder/phcoder' Serbinenko > To: grub-devel@gnu.org > Cc: > Sent: Thursday, February 23, 2012 1:24 AM > Subject: Re: The submenu command shows a text-based menu when using a GFX theme. > > On 23.02.2012 02:50, Towheed Mohammed wrote: >> If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme. Instead a text-based menu is shown. The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected. >> >> In Ubuntu's (about the only distro that uses the submenu command at this time) use of the submenu in 10_linux: >> >> if [ "$list" ]&& ! $in_submenu; then >> in_submenu=: >> fi >> >> A regular user must patch 10_linux thus: >> >> if [ "$list" ]&& ! $in_submenu; then >> echo "submenu \"Previous Linux versions\" --class submenu {" >> if [ "x$GRUB_THEME" != x ]&& [ -f "$GRUB_THEME" ] \ >> && is_path_readable_by_grub "$GRUB_THEME"; then >> prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"` >> cat<< EOF >> set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME` >> EOF >> fi >> in_submenu=: >> fi > What a perfect example of overengineering just to compensate for missing > "export theme". I've fixed it in trunk >> to reload the theme and have a themed submenu. >> >> Will this be fixed in the 2.00 release? >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel >> > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko