Skip to content

Commit

Permalink
gtk4: Fix visibility regression with actionbar
Browse files Browse the repository at this point in the history
Previously, the actionbar will always be visible.
It should have not been that.
Instead, it should only appear when the screen is small.

tchx84#464 (comment)
Signed-off-by: Fiana Fortressia <fortressnordlys@outlook.com>
  • Loading branch information
togetherwithasteria authored and A6GibKm committed Apr 1, 2023
1 parent 77a1638 commit 4d02967
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/widgets/window.js
Expand Up @@ -111,8 +111,8 @@ var FlatsealWindow = GObject.registerClass({
this._contentLeaflet.connect('notify::visible-child-name', this._focusContent.bind(this));
this._contentLeaflet.bind_property(
'folded', this._backButton, 'visible', _bindReadFlags);
this._permissionsHeaderBar.connect_after(
'size-allocate', this._updateVisibility.bind(this));
this._permissionsHeaderBar.root.connect(
'notify::default-width', this._updateVisibility.bind(this));

if (allApplications.length === 0 || allPermissions.length === 0)
return;
Expand Down
3 changes: 2 additions & 1 deletion src/widgets/window.ui
Expand Up @@ -152,7 +152,7 @@
<child>
<object class="GtkImage">
<property name="icon-name">system-search-symbolic</property>
<property name="icon_size">6</property>
<property name="icon_size">normal</property>
</object>
</child>
<child>
Expand Down Expand Up @@ -300,6 +300,7 @@
</child>
<child>
<object class="GtkActionBar" id="actionBar">
<property name="visible">False</property>
<child>
<object class="GtkBox" id="startActionBox">
<property name="valign">center</property>
Expand Down

0 comments on commit 4d02967

Please sign in to comment.