summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-09-15 15:05:40 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-09-19 18:40:50 +0200
commit27a391bad830e370424ecf199703e0590b159986 (patch)
treeabae2c3346cfcbc4af67205899d6c58c8f8b1d86 /gtk/gtkspinbutton.c
parentb31029457b4cc4b015cebe94cf8d0db81b8684c7 (diff)
downloadgtk+-27a391bad830e370424ecf199703e0590b159986.tar.gz
gtkspinbutton: Remove motion notify handler
It does nothing nowadays.
Diffstat (limited to 'gtk/gtkspinbutton.c')
-rw-r--r--gtk/gtkspinbutton.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 5e4735d142..07853124b1 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -270,8 +270,6 @@ static void gtk_spin_button_value_changed (GtkAdjustment *adjustment,
GtkSpinButton *spin_button);
static gint gtk_spin_button_key_release (GtkWidget *widget,
GdkEventKey *event);
-static gint gtk_spin_button_motion_notify (GtkWidget *widget,
- GdkEventMotion *event);
static void gtk_spin_button_activate (GtkEntry *entry,
gpointer user_data);
@@ -322,7 +320,6 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
widget_class->realize = gtk_spin_button_realize;
widget_class->measure = gtk_spin_button_measure;
widget_class->size_allocate = gtk_spin_button_size_allocate;
- widget_class->motion_notify_event = gtk_spin_button_motion_notify;
widget_class->key_release_event = gtk_spin_button_key_release;
widget_class->focus_out_event = gtk_spin_button_focus_out;
widget_class->grab_notify = gtk_spin_button_grab_notify;
@@ -1130,19 +1127,6 @@ gtk_spin_button_state_flags_changed (GtkWidget *widget,
}
static gint
-gtk_spin_button_motion_notify (GtkWidget *widget,
- GdkEventMotion *event)
-{
- GtkSpinButton *spin = GTK_SPIN_BUTTON (widget);
- GtkSpinButtonPrivate *priv = spin->priv;
-
- if (gtk_gesture_is_recognized (priv->swipe_gesture))
- return TRUE;
-
- return GTK_WIDGET_CLASS (gtk_spin_button_parent_class)->motion_notify_event (widget, event);
-}
-
-static gint
gtk_spin_button_timer (GtkSpinButton *spin_button)
{
GtkSpinButtonPrivate *priv = spin_button->priv;