forked from AuroraMiddleware/gtk
fixup editing style class
This commit is contained in:
parent
c7833bb090
commit
77072b3eaa
@ -460,7 +460,7 @@ gtk_editable_label_start_editing (GtkEditableLabel *self)
|
|||||||
gtk_stack_set_visible_child_name (GTK_STACK (self->stack), "entry");
|
gtk_stack_set_visible_child_name (GTK_STACK (self->stack), "entry");
|
||||||
gtk_widget_grab_focus (self->entry);
|
gtk_widget_grab_focus (self->entry);
|
||||||
|
|
||||||
gtk_widget_add_css_class (self, "editing");
|
gtk_widget_add_css_class (GTK_WIDGET (self), "editing");
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EDITING]);
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EDITING]);
|
||||||
}
|
}
|
||||||
@ -499,7 +499,7 @@ gtk_editable_label_stop_editing (GtkEditableLabel *self,
|
|||||||
|
|
||||||
gtk_widget_grab_focus (GTK_WIDGET (self));
|
gtk_widget_grab_focus (GTK_WIDGET (self));
|
||||||
|
|
||||||
gtk_widget_remove_css_class (self, "editing");
|
gtk_widget_remove_css_class (GTK_WIDGET (self), "editing");
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EDITING]);
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EDITING]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user