Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

combo-box: don't clobber the style-pseudo-class property

Use the add and remove functions to modify the pseudo-class, rather than
replacing the entire value at once.
  • Loading branch information...
commit d1ed078856bf5504e50dfd4b86d53414d6835ec8 1 parent bddd405
@thos thos authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 mx/mx-combo-box.c
View
6 mx/mx-combo-box.c
@@ -466,7 +466,7 @@ mx_combo_box_action_activated_cb (ClutterActor *menu,
mx_combo_box_set_index (box, index);
/* reset the combobox style */
- mx_stylable_set_style_pseudo_class (MX_STYLABLE (box), NULL);
+ mx_stylable_style_pseudo_class_remove (MX_STYLABLE (box), "hover");
}
static void
@@ -658,7 +658,7 @@ mx_combo_box_init (MxComboBox *self)
static MxFocusable *
mx_combo_box_accept_focus (MxFocusable *focusable, MxFocusHint hint)
{
- mx_stylable_set_style_pseudo_class (MX_STYLABLE (focusable), "focus");
+ mx_stylable_style_pseudo_class_add (MX_STYLABLE (focusable), "focus");
clutter_actor_grab_key_focus (CLUTTER_ACTOR (focusable));
@@ -672,7 +672,7 @@ mx_combo_box_move_focus (MxFocusable *focusable,
{
if (focusable == from)
{
- mx_stylable_set_style_pseudo_class (MX_STYLABLE (focusable), "");
+ mx_stylable_style_pseudo_class_remove (MX_STYLABLE (focusable), "focus");
}
return NULL;
Please sign in to comment.
Something went wrong with that request. Please try again.