hi;

On 9 January 2015 at 16:02, Kamalpreet Grewal <grewalkamal...@gmail.com> wrote:

> I am trying to add ruler to my application based on GTK+ 3.
>
> A class namely  is available in GTK2. I havebeen trying to find a
> class serving the purpose of ruler in GTK+ 3.
>
> What are the possible classes available for this implementation?

none. GtkRuler was deprecated in GTK+ 2.x and removed in GTK+ 3.x.
it's a *very* niche widget, and most applications that use one in
their UI ended up having their own class.

my suggestion is to look at ruler widgets in GIMP and Inkscape.

if you want to draw your own, you can use a GtkDrawingArea subclass
with a custum draw() virtual function.

ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to