From 9dcbaa5111e4c6d67cda057ea49d760b6538c9ff Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 23 Mar 2026 15:09:54 +0000 Subject: [PATCH] Enable scroll in histogram view and curve editor Both GthHistogramView and GthCurveEditor have histograms with event handler code for scroll-event but the widgets are missing the GDK_SCROLL_MASK bit for events, resulting in no scroll support. The event handlers already exist. Adding the mask bit makes the event handlers effective. --- extensions/file_tools/gth-curve-editor.c | 1 + pix/gth-histogram-view.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/file_tools/gth-curve-editor.c b/extensions/file_tools/gth-curve-editor.c index 49987117..97fe2b27 100644 --- a/extensions/file_tools/gth-curve-editor.c +++ b/extensions/file_tools/gth-curve-editor.c @@ -1003,6 +1003,7 @@ gth_curve_editor_init (GthCurveEditor *self) | GDK_POINTER_MOTION_HINT_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK + | GDK_SCROLL_MASK | GDK_STRUCTURE_MASK)); gtk_widget_show (self->priv->view); gtk_container_add (GTK_CONTAINER (view_container), self->priv->view); diff --git a/pix/gth-histogram-view.c b/pix/gth-histogram-view.c index 988805f9..94072a65 100644 --- a/pix/gth-histogram-view.c +++ b/pix/gth-histogram-view.c @@ -936,7 +936,7 @@ gth_histogram_view_init (GthHistogramView *self) gtk_widget_show (view_container); self->priv->view = gtk_drawing_area_new (); - gtk_widget_add_events (self->priv->view, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_STRUCTURE_MASK); + gtk_widget_add_events (self->priv->view, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_STRUCTURE_MASK | GDK_SCROLL_MASK); gtk_widget_show (self->priv->view); gtk_container_add (GTK_CONTAINER (view_container), self->priv->view);