Skip to content

Commit

Permalink
gtk4: Remove all can-focus properties from builder files
Browse files Browse the repository at this point in the history
This fixes regression issues with focus, as per
#464 (comment)

Closes #517

Signed-off-by: Fiana Fortressia <fortressnordlys@outlook.com>
  • Loading branch information
togetherwithasteria authored and tchx84 committed Apr 5, 2023
1 parent 2d9a32c commit 270833a
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/widgets/applicationRow.ui
Expand Up @@ -2,7 +2,6 @@
<interface>
<requires lib="gtk" version="4.0"/>
<template class="FlatsealApplicationRow" parent="AdwActionRow">
<property name="can-focus">True</property>
<property name="activatable">True</property>
<child type="prefix">
<object class="GtkImage" id="icon">
Expand Down
2 changes: 0 additions & 2 deletions src/widgets/docsViewer.ui
Expand Up @@ -4,14 +4,12 @@
<requires lib="libadwaita" version="1.0"/>
<requires lib="webkit2gtk" version="2.28"/>
<template class="FlatsealDocsViewer" parent="AdwApplicationWindow">
<property name="can-focus">False</property>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="AdwHeaderBar">
<property name="visible">1</property>
<property name="can-focus">False</property>
<property name="title" translatable="yes">Flatseal</property>
<property name="show-close-button">1</property>
<child>
Expand Down
1 change: 0 additions & 1 deletion src/widgets/globalRow.ui
Expand Up @@ -3,7 +3,6 @@
<requires lib="gtk" version="4.0"/>
<requires lib="libadwaita" version="1.0"/>
<template class="FlatsealGlobalRow" parent="AdwActionRow">
<property name="can-focus">True</property>
<property name="activatable">True</property>
<property name="title" translatable="yes">All Applications</property>
<property name="subtitle">global</property>
Expand Down
1 change: 0 additions & 1 deletion src/widgets/permissionEntryRow.ui
Expand Up @@ -4,7 +4,6 @@
<requires lib="libadwaita" version="1.0"/>
<template class="FlatsealPermissionEntryRow" parent="AdwPreferencesRow">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="activatable">False</property>
<property name="selectable">False</property>
<child>
Expand Down
1 change: 0 additions & 1 deletion src/widgets/permissionPortalRow.ui
Expand Up @@ -5,7 +5,6 @@
<template class="FlatsealPermissionPortalRow" parent="AdwActionRow">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">True</property>
<property name="activatable-widget">stateSwitch</property>
<child>
<object class="GtkBox">
Expand Down
1 change: 0 additions & 1 deletion src/widgets/permissionSwitchRow.ui
Expand Up @@ -5,7 +5,6 @@
<template class="FlatsealPermissionSwitchRow" parent="AdwActionRow">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">True</property>
<property name="activatable-widget">content</property>
<child>
<object class="GtkBox">
Expand Down
6 changes: 0 additions & 6 deletions src/widgets/window.ui
Expand Up @@ -3,12 +3,10 @@
<requires lib="gtk" version="4.0" />
<requires lib="libhandy" version="1.0" />
<template class="FlatsealWindow" parent="AdwApplicationWindow">
<property name="can-focus">False</property>
<property name="title">Flatseal</property>
<child>
<object class="AdwLeaflet" id="contentLeaflet">
<property name="width-request">360</property>
<property name="can-focus">False</property>
<property name="can-navigate-back">True</property>
<child>
<object class="AdwLeafletPage">
Expand All @@ -24,7 +22,6 @@
<object class="AdwHeaderBar" id="applicationsHeaderBar">
<property name="width-request">360</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="title-widget">
<object class="AdwWindowTitle">
<property name="title" translatable="yes">Applications</property>
Expand Down Expand Up @@ -204,7 +201,6 @@
<child>
<object class="AdwHeaderBar" id="permissionsHeaderBar">
<property name="width-request">360</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<binding name="show-start-title-buttons">
<lookup name="folded">contentLeaflet</lookup>
Expand Down Expand Up @@ -286,11 +282,9 @@
<object class="AdwPreferencesPage" id="permissionsBox">
<property name="vexpand">True</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="AdwPreferencesGroup" id="appInfoGroup">
<property name="visible">True</property>
<property name="can-focus">False</property>
</object>
</child>
</object>
Expand Down

0 comments on commit 270833a

Please sign in to comment.