aboutsummaryrefslogtreecommitdiff
path: root/liblogdiag/ld-canvas.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-02-01 14:43:02 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-02-01 14:52:48 +0100
commita967a2c3b8cae595d6a9114f4933a28c4818959a (patch)
treed7c8744dc596444fd985c6f27e29d33c70cf5550 /liblogdiag/ld-canvas.h
parentc091f71f9ac15dd4b5eb29beb233c9715420d75a (diff)
downloadlogdiag-a967a2c3b8cae595d6a9114f4933a28c4818959a.tar.gz
logdiag-a967a2c3b8cae595d6a9114f4933a28c4818959a.tar.xz
logdiag-a967a2c3b8cae595d6a9114f4933a28c4818959a.zip
Bind actions to cursor keys in LdCanvas.
If there's a selection, move it. Otherwise move the viewport.
Diffstat (limited to 'liblogdiag/ld-canvas.h')
-rw-r--r--liblogdiag/ld-canvas.h4
1 files changed, 3 insertions, 1 deletions
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);
};