Commit eb9dd0ef authored by Guido Gunther's avatar Guido Gunther
Browse files

home: Move fold/unfold logic into a single if/else


Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent b7ded89e
......@@ -321,15 +321,12 @@ phosh_home_set_state (PhoshHome *self, PhoshHomeState state)
if (state == PHOSH_HOME_STATE_UNFOLDED) {
gtk_style_context_add_class(context, "phosh-home-btn-image-down");
gtk_style_context_remove_class(context, "phosh-home-btn-image-up");
gtk_widget_hide (self->btn_osk);
} else {
gtk_style_context_remove_class(context, "phosh-home-btn-image-down");
gtk_style_context_add_class(context, "phosh-home-btn-image-up");
}
if (state == PHOSH_HOME_STATE_UNFOLDED)
gtk_widget_hide (self->btn_osk);
else
gtk_widget_show (self->btn_osk);
}
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_HOME_STATE]);
}
Markdown is supported
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