Skip to content
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

implement callback for GtkDarktableResetLabel #17161

Merged
merged 4 commits into from
Jul 28, 2024

Conversation

zisoft
Copy link
Collaborator

@zisoft zisoft commented Jul 18, 2024

fixes #17157

The problem here is that _reset_label_callback() resets the module parameters to its default values, but the according GUI element needs to be reset as well. So I have implemented a callback function for the GtkDarktableResetLabel to accomplish this.

The commits are per module for easier reverts if something went wrong.

@victoryforce
Copy link
Collaborator

@zisoft Tested, it works! Huge thanks for the quick fix! This is the case when I had to only raise an issue because I didn't have the stamina to look for the bug myself. We had many 35-36° days without air conditioning due to power shortage (all our thermal generation destroyed). So my brains were in thermal throttling mode. 🥵

@zisoft
Copy link
Collaborator Author

zisoft commented Jul 19, 2024

@victoryforce Thank you Victor! Let's all hope that this stupid war finally comes to an ending.

@victoryforce
Copy link
Collaborator

@victoryforce Thank you Victor! Let's all hope that this stupid war finally comes to an ending.

@zisoft Unfortunately, the vast majority of Russians support the genocide of the Ukrainians, and their leader, Putin, has no intention of stopping despite the terrible losses of the Russian army, so the only way to end this war is to defeat them.

Restrictions on the use of Western weapons only prolong the war, thus increasing the number of both our victims (soldiers and civilians) and victims among Russian cannon fodder.

Undefeated Russia, which will be forgiven for the partial occupation of Ukraine, will rearm and try to destroy Ukraine with even greater ferocity at the first opportunity. A peaceful agreement is impossible: they do not want to give up the subjugation of Ukraine, we cannot stop resistance if we want to live.

dterrahe added a commit to dterrahe/darktable that referenced this pull request Jul 19, 2024
fixes darktable-org#17157 by correctly linking the reset to the live parameters, rather than the default ones (or rather overwriting some random memory location). Bug introduced in darktable-org#6240 four years ago. _frame_ color reset may never have worked.
alignment reset needs gui->reset, so call dt_iop_gui_update rather than module->gui_update directly.

Also add (translatable) descriptions for (frame) color fields that will be used in the history changes tooltip.

simpler alternative to darktable-org#17161 that fixes the real issue.
dterrahe added a commit to dterrahe/darktable that referenced this pull request Jul 19, 2024
fixes darktable-org#17157 by correctly linking the reset to the live parameters, rather than the default ones (or rather overwriting some random memory location). Bug introduced in darktable-org#6240 four years ago. _frame_ color reset may never have worked.
alignment reset needs gui->reset, so call dt_iop_gui_update rather than module->gui_update directly.

add check that would have caught this condition earlier.

Also add (translatable) descriptions for (frame) color fields that will be used in the history changes tooltip.

simpler alternative to darktable-org#17161 that fixes the real issue.
@zisoft zisoft added bugfix pull request fixing a bug scope: UI user interface and interactions labels Jul 21, 2024
@TurboGit TurboGit added this to the 5.0 milestone Jul 28, 2024
@TurboGit TurboGit merged commit 802956a into darktable-org:master Jul 28, 2024
6 checks passed
@zisoft zisoft deleted the dtgtk-reset-label branch July 29, 2024 05:07
dterrahe added a commit to dterrahe/darktable that referenced this pull request Jul 30, 2024
dterrahe added a commit to dterrahe/darktable that referenced this pull request Aug 1, 2024
dterrahe added a commit to dterrahe/darktable that referenced this pull request Aug 5, 2024
jenshannoschwalm pushed a commit to jenshannoschwalm/darktable that referenced this pull request Aug 6, 2024
marc-fouquet pushed a commit to marc-fouquet/darktable that referenced this pull request Sep 13, 2024
@zisoft
Copy link
Collaborator Author

zisoft commented Oct 11, 2024

Release notes:

Fixed a bug where double clicking on a label in darkroom modules does not reset the control.

@TurboGit
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug scope: UI user interface and interactions
Projects
None yet
3 participants