You are not logged in.

#1 2014-07-28 14:18:19

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Extract the area selection code out of gnome-screenshot

Long ago, I asked about a tool for selecting a screen area and get the geometry of it, and I did get very helpful feedback from Hashbox, and in the end produced a tool called xrectsel.
But the flaw with xrectsel is that if while dragging the rectangle, some other application redraws its window, your selection is very messed up. This seems to be a common flaw in tools like scrot, import, etc.

OTOH, gnome-screenshot actually draws a window which prevents such a problem. Its selection is also pleasing to the eye. So I'm requesting help to extract the screen area selection part from gnome-screenshot.

All the relevant code is in this file:
https://github.com/GNOME/gnome-screensh … election.c

Anyone who has some experience with writing in GTK / C should find what I'm asking fairly easy, I suppose?

Last edited by lolilolicon (2014-07-28 14:20:39)


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB