mirror of
https://github.com/artizirk/wdisplays.git
synced 2024-12-22 04:20:16 +02:00
Fix spinner animating constantly
This commit is contained in:
parent
9020f1ba1c
commit
8cea18fd0d
@ -211,7 +211,6 @@
|
||||
<property name="no_show_all">True</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="vexpand">True</property>
|
||||
<property name="active">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pass_through">True</property>
|
||||
|
@ -160,6 +160,7 @@ static void apply_state(struct wd_state *state) {
|
||||
if (!state->autoapply) {
|
||||
gtk_style_context_add_class(gtk_widget_get_style_context(state->spinner), "visible");
|
||||
gtk_overlay_set_overlay_pass_through(GTK_OVERLAY(state->overlay), state->spinner, FALSE);
|
||||
gtk_spinner_start(GTK_SPINNER(state->spinner));
|
||||
|
||||
gtk_widget_set_sensitive(state->stack_switcher, FALSE);
|
||||
gtk_widget_set_sensitive(state->stack, FALSE);
|
||||
@ -677,6 +678,7 @@ void wd_ui_reset_all(struct wd_state *state) {
|
||||
void wd_ui_apply_done(struct wd_state *state, struct wl_list *outputs) {
|
||||
gtk_style_context_remove_class(gtk_widget_get_style_context(state->spinner), "visible");
|
||||
gtk_overlay_set_overlay_pass_through(GTK_OVERLAY(state->overlay), state->spinner, TRUE);
|
||||
gtk_spinner_stop(GTK_SPINNER(state->spinner));
|
||||
|
||||
gtk_widget_set_sensitive(state->stack_switcher, TRUE);
|
||||
gtk_widget_set_sensitive(state->stack, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user