Re: Ruler Class in GTK+ 3
- From: Emmanuele Bassi <ebassi gmail com>
- To: Marcus Karlsson <mk acc umu se>
- Cc: Kamalpreet Grewal <grewalkamal005 gmail com>, "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: Ruler Class in GTK+ 3
- Date: Fri, 9 Jan 2015 19:10:25 +0000
hi;
On 9 January 2015 at 17:51, Marcus Karlsson <mk acc umu se> wrote:
On Fri, Jan 09, 2015 at 04:12:12PM +0000, Emmanuele Bassi wrote:
my suggestion is to look at ruler widgets in GIMP and Inkscape.
Either that, or the GtkRuler widget itself from GTK 2 [1]. It doesn't
look like it's very complicated and can probably be ported to GTK 3
without too much effort, you just have to keep a copy of it in your app.
assuming the licensing terms are compatible, obviously.
to be fair, GtkRuler hasn't been maintained for a long, long time, and
any porting effort from the old GTK drawing semantics to the new ones
is probably going to be considerably more expensive than just using a
GtkDrawingArea and 25 lines of Cairo drawing code.
ciao,
Emmanuele.
--
https://www.bassi.io
[ ] ebassi [ gmail com]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]