From 7d196db4c083bb457482c72a9dbccdf2ae176571 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 15 Sep 2017 16:32:35 +0200 Subject: [PATCH] gtkcolorswatch: Remove enter/leave event handlers Those just maintained prelight state, which is already managed internally. --- gtk/gtkcolorswatch.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c index e87d769cbd..4b2bf62165 100644 --- a/gtk/gtkcolorswatch.c +++ b/gtk/gtkcolorswatch.c @@ -278,24 +278,6 @@ swatch_key_press (GtkWidget *widget, return FALSE; } -static gboolean -swatch_enter_notify (GtkWidget *widget, - GdkEventCrossing *event) -{ - gtk_widget_set_state_flags (widget, GTK_STATE_FLAG_PRELIGHT, FALSE); - - return FALSE; -} - -static gboolean -swatch_leave_notify (GtkWidget *widget, - GdkEventCrossing *event) -{ - gtk_widget_unset_state_flags (widget, GTK_STATE_FLAG_PRELIGHT); - - return FALSE; -} - static void emit_customize (GtkColorSwatch *swatch) { @@ -555,8 +537,6 @@ gtk_color_swatch_class_init (GtkColorSwatchClass *class) widget_class->drag_data_received = swatch_drag_data_received; widget_class->key_press_event = swatch_key_press; widget_class->popup_menu = swatch_popup_menu; - widget_class->enter_notify_event = swatch_enter_notify; - widget_class->leave_notify_event = swatch_leave_notify; widget_class->size_allocate = swatch_size_allocate; widget_class->state_flags_changed = swatch_state_flags_changed;