summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:20:13 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:20:13 +0200
commitd95a65dc1e113e10525eb12da0cc9e368065440d (patch)
tree79249b2f5876fe26be153aabf8b35e92d65f43dd
parent8a6a2b39a1117048608ea64eaa2e228868b0bbaa (diff)
downloadcv-d95a65dc1e113e10525eb12da0cc9e368065440d.tar.gz
cv-d95a65dc1e113e10525eb12da0cc9e368065440d.tar.bz2
cv-d95a65dc1e113e10525eb12da0cc9e368065440d.zip
roi: Make all functions static
-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;