summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/over.c11
-rw-r--r--gui/over.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/gui/over.c b/gui/over.c
index 43aa80a..9583b81 100644
--- a/gui/over.c
+++ b/gui/over.c
@@ -44,7 +44,6 @@ struct overlay {
struct aoi **aois;
bool (*hover)(void *user, bool on);
void (*click)(void *user);
- void (*drag)(void *user, int dx, int dy);
void *user;
struct aoi *aoi;
@@ -146,7 +145,7 @@ fprintf(stderr, "%u(%d) %u %.60s\n", ty, ink_rect.y / PANGO_SCALE, ink_h, over->
cairo_reset_clip(cr);
g_object_unref(layout);
- if (over->hover || over->click || over->drag) {
+ if (over->hover || over->click) {
struct aoi aoi_cfg = {
.x = x,
.y = y,
@@ -154,7 +153,6 @@ fprintf(stderr, "%u(%d) %u %.60s\n", ty, ink_rect.y / PANGO_SCALE, ink_h, over->
.h = h,
.hover = over->hover,
.click = over->click,
- .drag = over->drag,
.user = over->user,
};
@@ -248,13 +246,6 @@ void overlay_style(struct overlay *over, const struct overlay_style *style)
}
-void overlay_draggable(struct overlay *over,
- void (*drag)(void *user, int dx, int dy))
-{
- over->drag = drag;
-}
-
-
void overlay_text_raw(struct overlay *over, const char *s)
{
free((char *) over->s);
diff --git a/gui/over.h b/gui/over.h
index f340282..c6f8fed 100644
--- a/gui/over.h
+++ b/gui/over.h
@@ -50,8 +50,6 @@ struct overlay *overlay_add(struct overlay **overlays, struct aoi **aois,
void overlay_text_raw(struct overlay *over, const char *s);
void overlay_text(struct overlay *over, const char *fmt, ...);
void overlay_style(struct overlay *over, const struct overlay_style *style);
-void overlay_draggable(struct overlay *over,
- void (*drag)(void *user, int dx, int dy));
void overlay_remove(struct overlay **overlays, struct overlay *over);
void overlay_remove_all(struct overlay **overlays);