From d266e487b3ad0a85350080d732cefabbb77ed22c Mon Sep 17 00:00:00 2001 From: Victor Forsiuk Date: Thu, 5 Jun 2025 17:15:39 +0300 Subject: [PATCH 1/2] Hide rotate pixels module in the modules panel --- src/iop/rotatepixels.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/iop/rotatepixels.c b/src/iop/rotatepixels.c index 21c236aee98d..ae878b88abb2 100644 --- a/src/iop/rotatepixels.c +++ b/src/iop/rotatepixels.c @@ -70,7 +70,7 @@ const char *name() int flags() { return IOP_FLAGS_ALLOW_TILING | IOP_FLAGS_TILING_FULL_ROI | IOP_FLAGS_ONE_INSTANCE - | IOP_FLAGS_UNSAFE_COPY; + | IOP_FLAGS_UNSAFE_COPY | IOP_FLAGS_HIDDEN; } int default_group() @@ -376,4 +376,3 @@ void gui_init(dt_iop_module_t *self) // vim: shiftwidth=2 expandtab tabstop=2 cindent // kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified; // clang-format on - From 0fae1ceea06a08708fcfefe0facec3231977c388 Mon Sep 17 00:00:00 2001 From: Victor Forsiuk Date: Thu, 5 Jun 2025 17:15:40 +0300 Subject: [PATCH 2/2] Remove all GUI related code --- src/iop/rotatepixels.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/iop/rotatepixels.c b/src/iop/rotatepixels.c index ae878b88abb2..873da4e2ceca 100644 --- a/src/iop/rotatepixels.c +++ b/src/iop/rotatepixels.c @@ -349,26 +349,6 @@ void reload_defaults(dt_iop_module_t *self) *d = (dt_iop_rotatepixels_params_t){ .rx = 0u, .ry = image->fuji_rotation_pos, .angle = -45.0f }; self->default_enabled = ((d->rx != 0u) || (d->ry != 0u)); - - // FIXME: does not work. - self->hide_enable_button = !self->default_enabled; - - if(self->widget) - gtk_label_set_text(GTK_LABEL(self->widget), self->default_enabled - ? _("automatic pixel rotation") - : _("automatic pixel rotation\nonly works for the sensors that need it.")); -} - -void gui_update(dt_iop_module_t *self) -{ -} -void gui_init(dt_iop_module_t *self) -{ - IOP_GUI_ALLOC(rotatepixels); - - self->widget = dt_ui_label_new(""); - gtk_label_set_line_wrap(GTK_LABEL(self->widget), TRUE); - } // clang-format off