[libhandy/wip/haecker-felix/flap-widget] Fix locking
- From: Felix Häcker <haeckerfelix src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/haecker-felix/flap-widget] Fix locking
- Date: Sat, 1 Aug 2020 18:46:41 +0000 (UTC)
commit 68b05848ddf5b2e0400fa5c74dfc45bc0c51a96c
Author: Felix Häcker <haeckerfelix gnome org>
Date: Sat Aug 1 20:46:37 2020 +0200
Fix locking
src/hdy-flap.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/src/hdy-flap.c b/src/hdy-flap.c
index 7ffd9885..cdbdf1fb 100644
--- a/src/hdy-flap.c
+++ b/src/hdy-flap.c
@@ -453,13 +453,7 @@ allocate_content (HdyFlap *self,
if (self->orientation == GTK_ORIENTATION_HORIZONTAL){
int min = content_min.width + flap_min.width;
- if (self->flap_fold_policy == HDY_FLAP_FOLD_POLICY_AUTO){
- set_folded (self, widget_alloc->width <= min);
-
- if (!self->locked)
- hdy_flap_set_reveal_flap(self, !self->folded);
- }
-
+ if (self->flap_fold_policy == HDY_FLAP_FOLD_POLICY_AUTO) set_folded (self, widget_alloc->width <= min);
if (self->flap_position == adjust_for_text_direction (self, GTK_PACK_START)){
content_x = widget_alloc->x + adjust_for_overlay (self, get_flap_size(self, widget_alloc,
GTK_ORIENTATION_HORIZONTAL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]