summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/roi.c b/roi.c
index 91a71ca..2fd5ee1 100644
--- a/roi.c
+++ b/roi.c
@@ -24,7 +24,7 @@ struct roi {
} rubberband;
};
-void
+static void
do_roi(struct roi *roi)
{
GdkPixbuf *match;
@@ -107,7 +107,7 @@ do_roi(struct roi *roi)
g_object_unref(match);
}
-gboolean
+static gboolean
motion_notify_event(GtkWidget *widget, GdkEventMotion *event, gpointer userdata)
{
struct roi *roi = userdata;
@@ -121,7 +121,7 @@ motion_notify_event(GtkWidget *widget, GdkEventMotion *event, gpointer userdata)
return TRUE;
}
-gboolean
+static gboolean
button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer userdata)
{
struct roi *roi = userdata;
@@ -154,7 +154,7 @@ calc_rubberband_rect(struct roi *roi,
*height = ABS(roi->rubberband.y1 - roi->rubberband.y2);
}
-gboolean
+static gboolean
button_release_event(GtkWidget *widget, GdkEventButton *event, gpointer userdata)
{
struct roi *roi = userdata;
@@ -175,7 +175,7 @@ button_release_event(GtkWidget *widget, GdkEventButton *event, gpointer userdata
return FALSE;
}
-gboolean
+static gboolean
key_event(GtkWidget *widget, GdkEventKey *event, gpointer userdata)
{
struct roi *roi = userdata;
@@ -199,13 +199,13 @@ key_event(GtkWidget *widget, GdkEventKey *event, gpointer userdata)
return FALSE;
}
-gboolean
+static gboolean
configure_event(GtkWidget *widget, GdkEventConfigure *event, gpointer data)
{
return FALSE;
}
-void
+static void
draw_rubberband(struct roi *roi, GtkWidget *widget, cairo_t *cr)
{
GtkStyleContext *context;
@@ -221,7 +221,7 @@ draw_rubberband(struct roi *roi, GtkWidget *widget, cairo_t *cr)
gtk_style_context_restore(context);
}
-gboolean
+static gboolean
draw_cb(GtkWidget *widget, cairo_t *cr, gpointer userdata)
{
struct roi *roi = userdata;