Skip to content

Backport bitcoin#14123 and bitcoin#16720 #3463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 30, 2020

Conversation

xdustinface
Copy link

Backport of bitcoin#14123 and bitcoin#16720 like suggested in #3359

hebasto and others added 7 commits April 27, 2020 14:12
Qt `setWindowIcon()` does this work.
This moves the Dock icon click reaction code to the common place and
allows some cleanup in obj_c code.

According to the Apple's docs `class_replaceMethod` behaves as
`class_addMethod`, if the method identified by name does not yet exist;
or as `method_setImplementation`, if it does exist.
Qt `setAsDockMenu()` does this work.
@UdjinM6 UdjinM6 added this to the 16 milestone Apr 28, 2020
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

EDIT: compiles and works as expected on Mojave

@PastaPastaPasta
Copy link
Member

Please change the title to "Backport bitcoin#14123 and bitcoin#16720" or squash the individual commits grouped by PR and name the commits "Merge #XXXXX [rest of btc PR title]"

@xdustinface xdustinface changed the title Fix macOS Catalina build Backport bitcoin#14123 and bitcoin#16720 Apr 28, 2020
@UdjinM6 UdjinM6 merged commit 124824d into dashpay:develop Apr 30, 2020
@xdustinface xdustinface deleted the pr-macos-catalina-build branch May 29, 2020 08:09
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Jun 26, 2021
* Remove obj_c for macOS Dock icon setting

Qt `setWindowIcon()` does this work.

* Use Qt signal for macOS Dock icon click event

This moves the Dock icon click reaction code to the common place and
allows some cleanup in obj_c code.

According to the Apple's docs `class_replaceMethod` behaves as
`class_addMethod`, if the method identified by name does not yet exist;
or as `method_setImplementation`, if it does exist.

* Remove obj_c for macOS Dock icon menu

Qt `setAsDockMenu()` does this work.

* qt: Add GUIUtil::bringToFront

* qt: Use GUIUtil::bringToFront where possible

* qt: All tray menu actions call showNormalIfMinimized

* qt: Replace objc_msgSend with native syntax

Co-authored-by: Hennadii Stepanov <[email protected]>
Co-authored-by: João Barbosa <[email protected]>
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Feb 22, 2022
* Remove obj_c for macOS Dock icon setting

Qt `setWindowIcon()` does this work.

* Use Qt signal for macOS Dock icon click event

This moves the Dock icon click reaction code to the common place and
allows some cleanup in obj_c code.

According to the Apple's docs `class_replaceMethod` behaves as
`class_addMethod`, if the method identified by name does not yet exist;
or as `method_setImplementation`, if it does exist.

* Remove obj_c for macOS Dock icon menu

Qt `setAsDockMenu()` does this work.

* qt: Add GUIUtil::bringToFront

* qt: Use GUIUtil::bringToFront where possible

* qt: All tray menu actions call showNormalIfMinimized

* qt: Replace objc_msgSend with native syntax

Co-authored-by: Hennadii Stepanov <[email protected]>
Co-authored-by: João Barbosa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants