From a967a2c3b8cae595d6a9114f4933a28c4818959a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Tue, 1 Feb 2011 14:43:02 +0100 Subject: Bind actions to cursor keys in LdCanvas. If there's a selection, move it. Otherwise move the viewport. --- liblogdiag/ld-canvas.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'liblogdiag/ld-canvas.h') diff --git a/liblogdiag/ld-canvas.h b/liblogdiag/ld-canvas.h index b7e66d8..ae42f26 100644 --- a/liblogdiag/ld-canvas.h +++ b/liblogdiag/ld-canvas.h @@ -2,7 +2,7 @@ * ld-canvas.h * * This file is a part of logdiag. - * Copyright Přemysl Janouch 2010. All rights reserved. + * Copyright Přemysl Janouch 2010 - 2011. All rights reserved. * * See the file LICENSE for licensing information. * @@ -47,10 +47,12 @@ struct _LdCanvasClass GtkDrawingAreaClass parent_class; guint cancel_operation_signal; + guint move_signal; void (*set_scroll_adjustments) (LdCanvas *self, GtkAdjustment *horizontal, GtkAdjustment *vertical); void (*cancel_operation) (LdCanvas *self); + void (*move) (LdCanvas *self, gdouble dx, gdouble dy); }; -- cgit v1.2.3