summaryrefslogtreecommitdiffstats
path: root/src/widgets/spinbutton-events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/spinbutton-events.cpp')
-rw-r--r--src/widgets/spinbutton-events.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets/spinbutton-events.cpp b/src/widgets/spinbutton-events.cpp
index 444aa278e..c718b6712 100644
--- a/src/widgets/spinbutton-events.cpp
+++ b/src/widgets/spinbutton-events.cpp
@@ -64,10 +64,9 @@ spinbutton_defocus (GtkWidget *container)
}
}
-gboolean
-spinbutton_keypress (GtkWidget *w, GdkEventKey *event, gpointer data)
+gboolean spinbutton_keypress(GtkWidget *w, GdkEventKey *event, gpointer data)
{
- SPWidget *spw = (SPWidget *) data;
+ SPWidget *spw = SP_WIDGET(data);
gdouble v;
gdouble step;
gdouble page;