From: "Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
62234@debbugs.gnu.org,
Konrad Podczeck <konrad.podczeck@univie.ac.at>
Subject: bug#62234: Toolbar does not work properly (with Emacs 29 or 30)
Date: Sat, 18 Mar 2023 11:25:51 +0100 [thread overview]
Message-ID: <m1a60atky8.fsf@yahoo.es> (raw)
In-Reply-To: <871qlm3g9t.fsf@yahoo.com> (Po Lu's message of "Sat, 18 Mar 2023 11:11:26 +0800")
[-- Attachment #1: Type: text/plain, Size: 544 bytes --]
Po Lu <luangruo@yahoo.com> writes:
>> +-(BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem
>> +{
>> + return [toolbarItem isEnabled];
>> +}
>> +
>
> This does no harm on GNUstep. However, please indent with two spaces,
> and place spaces after -, :, and ):
>
> - (BOOL) validateToolbarItem: (NSToolBarItem *) toolbarItem
> {
> return [toolbarItem isEnabled];
> }
>
> Otherwise, LGTM. Thanks.
OK, I've attached a new version of the patch. Konrad, could you check
if with this patch the Emacs toolbar works as you expect? Thanks.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-toolbar-item-validation-in-the-NS-port.patch --]
[-- Type: text/x-patch, Size: 833 bytes --]
From b994036d9475e2ae4f4adea8b3a29eff054e354a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
Date: Sat, 18 Mar 2023 01:47:32 +0100
Subject: [PATCH] Fix toolbar item validation in the NS port
* src/nsterm.m ([EmacsView validateToolbarItem:]): Implement this
NSToolbarItemValidation method, which is called by AppKit when it
needs to validate an image item in a toolbar.
---
src/nsterm.m | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/nsterm.m b/src/nsterm.m
index 0e75cbf3f0f..46007ec4fcb 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -8573,6 +8573,10 @@ - (instancetype)toolbarClicked: (id)item
return self;
}
+- (BOOL) validateToolbarItem: (NSToolbarItem *) toolbarItem
+{
+ return [toolbarItem isEnabled];
+}
- (instancetype)toggleToolbar: (id)sender
{
--
2.34.1
next prev parent reply other threads:[~2023-03-18 10:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 7:55 bug#62234: Toolbar does not work properly (with Emacs 29 or 30) Konrad Podczeck
2023-03-17 8:27 ` Eli Zaretskii
2023-03-17 10:38 ` Konrad Podczeck
2023-03-17 11:49 ` Eli Zaretskii
2023-03-17 13:11 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-17 13:32 ` Eli Zaretskii
2023-03-18 0:29 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-18 1:09 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-18 3:11 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-18 10:25 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-03-18 11:07 ` Konrad Podczeck
2023-03-23 8:10 ` Eli Zaretskii
2023-03-23 14:57 ` Konrad Podczeck
2023-03-17 15:21 ` Konrad Podczeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1a60atky8.fsf@yahoo.es \
--to=bug-gnu-emacs@gnu.org \
--cc=62234@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=konrad.podczeck@univie.ac.at \
--cc=luangruo@yahoo.com \
--cc=mardani29@yahoo.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).