Commit 28d1a0c3 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

input-sources: add hover pseudo class to GfCandidateBox

parent 21972d3b
......@@ -64,6 +64,24 @@ gf_candidate_box_set_property (GObject *object,
}
}
static gboolean
gf_candidate_box_enter_notify_event (GtkWidget *widget,
GdkEventCrossing *event)
{
gtk_widget_set_state_flags (widget, GTK_STATE_FLAG_PRELIGHT, TRUE);
return GDK_EVENT_PROPAGATE;
}
static gboolean
gf_candidate_box_leave_notify_event (GtkWidget *widget,
GdkEventCrossing *event)
{
gtk_widget_set_state_flags (widget, GTK_STATE_FLAG_NORMAL, TRUE);
return GDK_EVENT_PROPAGATE;
}
static void
gf_candidate_box_class_init (GfCandidateBoxClass *box_class)
{
......@@ -75,6 +93,9 @@ gf_candidate_box_class_init (GfCandidateBoxClass *box_class)
object_class->set_property = gf_candidate_box_set_property;
widget_class->enter_notify_event = gf_candidate_box_enter_notify_event;
widget_class->leave_notify_event = gf_candidate_box_leave_notify_event;
properties[PROP_INDEX] =
g_param_spec_uint ("index", "index", "index", 0, G_MAXUINT, 0,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE |
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment