diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-01 14:43:02 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-01 14:52:48 +0100 |
commit | a967a2c3b8cae595d6a9114f4933a28c4818959a (patch) | |
tree | d7c8744dc596444fd985c6f27e29d33c70cf5550 /liblogdiag/ld-canvas.h | |
parent | c091f71f9ac15dd4b5eb29beb233c9715420d75a (diff) | |
download | logdiag-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.h | 4 |
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); }; |