From 5e68d963b3601520f2793135ffc8cd560aef6dd7 Mon Sep 17 00:00:00 2001 From: Enrico Zini Date: Thu, 10 Dec 2009 10:48:21 +0000 Subject: [PATCH] Draw arrows in the scroll area --- src/fisheye.vala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/fisheye.vala b/src/fisheye.vala index b834239..5ce56e2 100644 --- a/src/fisheye.vala +++ b/src/fisheye.vala @@ -315,6 +315,16 @@ public class FisheyeList : Gtk.DrawingArea drawable.draw_rectangle(style.bg_gc[Gtk.StateType.INSENSITIVE], true, allocation.width/2, 0, allocation.width, allocation.height); + for (int y = 0; y < allocation.height/2 - 30; y += 30) + { + Gtk.paint_arrow(style, (Gdk.Window*)drawable, Gtk.StateType.INSENSITIVE, Gtk.ShadowType.NONE, + null, this, null, Gtk.ArrowType.UP, false, + allocation.width/2, y, allocation.width/2, 10); + Gtk.paint_arrow(style, (Gdk.Window*)drawable, Gtk.StateType.INSENSITIVE, Gtk.ShadowType.NONE, + null, this, null, Gtk.ArrowType.DOWN, false, + allocation.width/2, allocation.height-y-30, allocation.width/2, 10); + } + Gdk.Rectangle expose_area = Gdk.Rectangle(); expose_area.x = expose_area.y = 0; expose_area.width = allocation.width; -- 2.30.2