kaka.farm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 865bd94dd4650199c4d59c5ed47acd23b56dcced
parent f3b25cf9cf22a31dab6e77357d67228b1f589106
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Thu, 27 Jan 2022 08:11:51 +0200

Put the trees in fenced code blocks.

Diffstat:
Mcontent/2022-01-27-opencv-and-gtk.md | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/content/2022-01-27-opencv-and-gtk.md b/content/2022-01-27-opencv-and-gtk.md @@ -7,18 +7,22 @@ Expanding on the tutorial: it originally had shown the following structure: +``` - window1 (GtkWindow) - box1 (GtkBox) - grayscaleButton (GtkToggleButton) - image - (GtkImage) +``` but if you want to find the mouse location, put your GtkImage inside a GtkEventBox: +``` - window1 (GtkWindow) - box1 (GtkBox) - grayscaleButton (GtkToggleButton) - eventbox - (GtkEventBox) - image - (GtkImage) +``` and in `eventbox` set the `Common -> Events -> Pointer Motion` so you can add a handler to the `motion-notify-event` event.