[epiphany] resources/gtk: Remove plenty of useless (and harmless) can_focus
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] resources/gtk: Remove plenty of useless (and harmless) can_focus
- Date: Wed, 14 Jul 2021 19:20:12 +0000 (UTC)
commit 23f93a4f360cf2278554ba9bf2b2e1bfc019ea3e
Author: vanadiae <vanadiae35 gmail com>
Date: Wed Jul 14 17:49:41 2021 +0200
resources/gtk: Remove plenty of useless (and harmless) can_focus
In the UI files there's a lot of places where can_focus is set, even
when it makes no sense to have it because by default it is set to False,
and is adapted by the widget implementations depending on whether it
makes sense to have it set. So for example tons of buttons or rows had
can-focus set to True, although it's already the default for those, or
set to False for labels. Some containers also had their can-focus set
to True/False although they almost never need focus (and have it set
to False by default too).
So this commit removes all those useless can-focus, but only the one
that shouldn't fix any keyboard focus issue.
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/987>
src/resources/gtk/action-bar-end.ui | 4 ----
src/resources/gtk/bookmark-row.ui | 4 ----
src/resources/gtk/clear-data-view.ui | 2 --
src/resources/gtk/data-view.ui | 11 -----------
src/resources/gtk/encoding-dialog.ui | 18 ------------------
src/resources/gtk/history-dialog.ui | 15 ---------------
src/resources/gtk/page-menu-popover.ui | 21 ---------------------
src/resources/gtk/page-row.ui | 10 ----------
src/resources/gtk/passwords-view.ui | 2 --
src/resources/gtk/prefs-appearance-page.ui | 1 -
src/resources/gtk/prefs-lang-dialog.ui | 9 ---------
11 files changed, 97 deletions(-)
---
diff --git a/src/resources/gtk/action-bar-end.ui b/src/resources/gtk/action-bar-end.ui
index e0082d589..a1b68bf7c 100644
--- a/src/resources/gtk/action-bar-end.ui
+++ b/src/resources/gtk/action-bar-end.ui
@@ -45,18 +45,15 @@
<!-- Translators: tooltip for the downloads button -->
<property name="tooltip_text" translatable="yes">View downloads</property>
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<child>
<object class="GtkOverlay">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="valign">center</property>
<child>
<object class="GtkImage" id="downloads_icon">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="icon_name">ephy-download-symbolic</property>
<style>
<class name="download_icon"/>
@@ -66,7 +63,6 @@
<child type="overlay">
<object class="GtkProgressBar" id="downloads_progress">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="valign">end</property>
<style>
<class name="download_progress"/>
diff --git a/src/resources/gtk/bookmark-row.ui b/src/resources/gtk/bookmark-row.ui
index 1b82a5352..9a71dde77 100644
--- a/src/resources/gtk/bookmark-row.ui
+++ b/src/resources/gtk/bookmark-row.ui
@@ -8,12 +8,10 @@
<child>
<object class="GtkBox">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage" id="favicon_image">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_left">6</property>
</object>
<packing>
@@ -25,7 +23,6 @@
<child>
<object class="GtkLabel" id="title_label">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="halign">fill</property>
<property name="hexpand">True</property>
<property name="ellipsize">end</property>
@@ -47,7 +44,6 @@
<child>
<object class="GtkImage">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="icon_name">emblem-system-symbolic</property>
</object>
</child>
diff --git a/src/resources/gtk/clear-data-view.ui b/src/resources/gtk/clear-data-view.ui
index a7ba6b952..e3b4066bd 100644
--- a/src/resources/gtk/clear-data-view.ui
+++ b/src/resources/gtk/clear-data-view.ui
@@ -32,11 +32,9 @@
<child>
<object class="GtkScrolledWindow" id="scrolled_window">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<child>
<object class="HdyClamp">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<child>
diff --git a/src/resources/gtk/data-view.ui b/src/resources/gtk/data-view.ui
index 5d3396873..bc6e0ab90 100644
--- a/src/resources/gtk/data-view.ui
+++ b/src/resources/gtk/data-view.ui
@@ -4,19 +4,16 @@
<requires lib="libhandy" version="0.0"/>
<object class="GtkImage" id="search_image">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="icon_name">edit-find-symbolic</property>
</object>
<object class="GtkImage" id="back_image">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="icon_name">go-previous-symbolic</property>
</object>
<template class="EphyDataView" parent="GtkBin">
<child>
<object class="GtkBox" id="box">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="HdyWindowHandle">
@@ -24,12 +21,10 @@
<child>
<object class="GtkHeaderBar" id="header_bar">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="show_close_button">True</property>
<child>
<object class="GtkButton" id="back_button">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="image">back_image</property>
<signal name="clicked" handler="on_back_button_clicked"/>
</object>
@@ -37,7 +32,6 @@
<child>
<object class="GtkToggleButton" id="search_button">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="image">search_image</property>
<property name="always_show_image">True</property>
@@ -62,7 +56,6 @@
<child>
<object class="HdySearchBar" id="search_bar">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
<property name="search_mode_enabled">False</property>
@@ -73,7 +66,6 @@
<child>
<object class="GtkSearchEntry" id="search_entry">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="primary_icon_name">edit-find-symbolic</property>
<property name="primary_icon_activatable">False</property>
@@ -90,12 +82,10 @@
</child>
<child>
<object class="GtkStack" id="stack">
- <property name="can_focus">False</property>
<property name="expand">True</property>
<property name="visible">True</property>
<child>
<object class="GtkSpinner" id="spinner">
- <property name="can_focus">False</property>
<property name="visible">True</property>
</object>
<packing>
@@ -132,7 +122,6 @@
<child>
<object class="GtkButton" id="clear_button">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<signal name="clicked" handler="on_clear_button_clicked" swapped="yes"/>
diff --git a/src/resources/gtk/encoding-dialog.ui b/src/resources/gtk/encoding-dialog.ui
index bfc54175e..7cf223bef 100644
--- a/src/resources/gtk/encoding-dialog.ui
+++ b/src/resources/gtk/encoding-dialog.ui
@@ -3,7 +3,6 @@
<interface>
<requires lib="gtk+" version="3.14"/>
<template class="EphyEncodingDialog" parent="GtkDialog">
- <property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="title" translatable="yes">Text Encoding</property>
<property name="role">epiphany-encoding-chooser</property>
@@ -17,12 +16,10 @@
</child>
<child internal-child="vbox">
<object class="GtkBox">
- <property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child internal-child="action_area">
<object class="GtkButtonBox">
- <property name="can_focus">False</property>
</object>
<packing>
<property name="expand">False</property>
@@ -33,13 +30,11 @@
<child>
<object class="GtkGrid">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="halign">start</property>
<property name="margin_left">6</property>
<property name="hexpand">True</property>
@@ -74,26 +69,22 @@
<object class="GtkStack" id="type_stack">
<property name="visible">True</property>
<property name="sensitive">False</property>
- <property name="can_focus">False</property>
<property name="vexpand">True</property>
<property name="interpolate_size">True</property>
<child>
<object class="GtkGrid" id="suggested_grid">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="row_spacing">16</property>
<child>
<object class="GtkGrid" id="recent_grid">
<property name="visible">True</property>
<property name="vexpand">True</property>
- <property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="row_spacing">8</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="halign">start</property>
<property name="margin_start">8</property>
<property name="label" translatable="yes">Recent encodings</property>
@@ -110,14 +101,12 @@
<object class="GtkFrame">
<property name="visible">True</property>
<property name="vexpand">True</property>
- <property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="recent_list_box">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<signal name="row-activated" handler="row_activated_cb" swapped="no"/>
</object>
</child>
@@ -139,13 +128,11 @@
<child>
<object class="GtkGrid" id="related_grid">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="row_spacing">8</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="halign">start</property>
<property name="margin_start">8</property>
<property name="label" translatable="yes">Related encodings</property>
@@ -161,7 +148,6 @@
<child>
<object class="GtkFrame">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="border_width">6</property>
<property name="label_xalign">0</property>
@@ -169,7 +155,6 @@
<child>
<object class="GtkListBox" id="related_list_box">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<signal name="row-activated" handler="row_activated_cb" swapped="no"/>
</object>
</child>
@@ -210,17 +195,14 @@
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<child>
<object class="GtkListBox" id="list_box">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<signal name="row-activated" handler="row_activated_cb"/>
</object>
</child>
diff --git a/src/resources/gtk/history-dialog.ui b/src/resources/gtk/history-dialog.ui
index fafc17e8e..cfd62343b 100644
--- a/src/resources/gtk/history-dialog.ui
+++ b/src/resources/gtk/history-dialog.ui
@@ -4,7 +4,6 @@
<requires lib="libhandy" version="0.0"/>
<template class="EphyHistoryDialog" parent="HdyWindow">
<!--property name="search_description" translatable="yes">Search history</property-->
- <property name="can-focus">False</property>
<property name="modal">True</property>
<property name="window-position">center-on-parent</property>
<property name="default-width">640</property>
@@ -16,7 +15,6 @@
<child>
<object class="GtkBox">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkStack" id="header_bars_stack">
@@ -25,7 +23,6 @@
<child>
<object class="HdyHeaderBar" id="window_header_bar">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="show_close_button">True</property>
<property name="title" translatable="yes">History</property>
<child>
@@ -57,7 +54,6 @@
<child>
<object class="GtkToggleButton" id="search_button">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="always_show_image">True</property>
<property name="active" bind-source="search_bar" bind-property="search-mode-enabled"
bind-flags="sync-create|bidirectional"/>
@@ -65,7 +61,6 @@
<child>
<object class="GtkImage">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="icon_name">edit-find-symbolic</property>
</object>
</child>
@@ -111,7 +106,6 @@
<child>
<object class="GtkImage">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="icon_name">edit-find-symbolic</property>
</object>
</child>
@@ -132,7 +126,6 @@
<child>
<object class="HdySearchBar" id="search_bar">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
<property name="search_mode_enabled">False</property>
@@ -145,7 +138,6 @@
<child>
<object class="GtkSearchEntry" id="search_entry">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="placeholder-text" translatable="yes">Search history</property>
<property name="primary_icon_name">edit-find-symbolic</property>
@@ -168,19 +160,16 @@
<child>
<object class="GtkScrolledWindow" id="history_scrolled_window">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<signal name="edge-reached" handler="on_edge_reached" object="EphyHistoryDialog"
swapped="no"/>
<child>
<object class="HdyClamp">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<property name="maximum_size">1024</property>
<child>
<object class="GtkListBox" id="listbox">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<property name="valign">start</property>
@@ -199,7 +188,6 @@
</child>
<child>
<object class="GtkSpinner" id="loading_spinner">
- <property name="can_focus">False</property>
<property name="visible">True</property>
</object>
</child>
@@ -230,7 +218,6 @@
<child>
<object class="GtkButton" id="clear_all_button">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use-underline">True</property>
<property name="label" translatable="yes">_Clear All</property>
@@ -253,7 +240,6 @@
<child>
<object class="GtkButton" id="selection_delete_button">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="sensitive">False</property>
<property name="use_underline">True</property>
@@ -270,7 +256,6 @@
<child>
<object class="GtkButton" id="selection_open_button">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="sensitive">False</property>
<property name="use_underline">True</property>
diff --git a/src/resources/gtk/page-menu-popover.ui b/src/resources/gtk/page-menu-popover.ui
index 830a54393..9f3a554d6 100644
--- a/src/resources/gtk/page-menu-popover.ui
+++ b/src/resources/gtk/page-menu-popover.ui
@@ -3,7 +3,6 @@
<object class="GtkPopoverMenu" id="page-menu-popover">
<child>
<object class="GtkBox">
- <property name="can_focus">False</property>
<property name="margin-top">12</property>
<property name="orientation">vertical</property>
<property name="visible">True</property>
@@ -155,7 +154,6 @@
</child>
<child>
<object class="GtkBox">
- <property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="visible">True</property>
<style>
@@ -173,7 +171,6 @@
</child>
<child>
<object class="GtkModelButton" id="run-in-background-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">_Run in Background</property>
<property name="action-name">app.run-in-background</property>
<property name="visible">True</property>
@@ -191,7 +188,6 @@
</child>
<child>
<object class="GtkModelButton" id="new-window-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">_New Window</property>
<property name="action-name">app.new-window</property>
<property name="visible">True</property>
@@ -199,7 +195,6 @@
</child>
<child>
<object class="GtkModelButton" id="new-incognito-window-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">New _Incognito Window</property>
<property name="action-name">app.new-incognito</property>
<property name="visible">True</property>
@@ -216,7 +211,6 @@
<!-- FRAGILE: This button is manually removed for app mode in ephy-header-bar.c. -->
<child>
<object class="GtkModelButton" id="reopen-closed-tab-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">Reopen Closed _Tab</property>
<property name="action-name">app.reopen-closed-tab</property>
<property name="visible">True</property>
@@ -224,7 +218,6 @@
</child>
<child>
<object class="GtkModelButton">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">_History</property>
<property name="action-name">app.history</property>
<property name="visible">True</property>
@@ -241,7 +234,6 @@
</child>
<child>
<object class="GtkModelButton" id="firefox-sync-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">Firefox _Sync</property>
<property name="action-name">app.firefox-sync-dialog</property>
<property name="visible">True</property>
@@ -265,7 +257,6 @@
</child>
<child>
<object class="GtkModelButton" id="save-as-application-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">Install Site as Web _Application…</property>
<property name="action-name">win.save-as-application</property>
<property name="visible">True</property>
@@ -273,7 +264,6 @@
</child>
<child>
<object class="GtkModelButton" id="application-manager-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">Open Appli_cation Manager</property>
<property name="action-name">win.open-application-manager</property>
<property name="visible">True</property>
@@ -281,7 +271,6 @@
</child>
<child>
<object class="GtkModelButton" id="extensions-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">E_xtensions</property>
<property name="action-name">win.extensions</property>
<property name="visible">True</property>
@@ -298,7 +287,6 @@
</child>
<child>
<object class="GtkModelButton" id="override-text-encoding-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">_Override Text Encoding…</property>
<property name="action-name">win.encoding</property>
<property name="visible">True</property>
@@ -314,7 +302,6 @@
</child>
<child>
<object class="GtkModelButton">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">Pr_eferences</property>
<property name="action-name">app.preferences</property>
<property name="visible">True</property>
@@ -323,7 +310,6 @@
<!-- FRAGILE: This button is manually removed for app mode in ephy-header-bar.c. -->
<child>
<object class="GtkModelButton" id="keyboard-shortcuts-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">_Keyboard Shortcuts</property>
<property name="action-name">app.shortcuts</property>
<property name="visible">True</property>
@@ -332,7 +318,6 @@
<!-- FRAGILE: This button is manually removed for app mode/Pantheon in ephy-header-bar.c. -->
<child>
<object class="GtkModelButton" id="help-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">_Help</property>
<property name="action-name">app.help</property>
<property name="visible">True</property>
@@ -341,7 +326,6 @@
<!-- FRAGILE: This button is manually removed for Pantheon in ephy-header-bar.c. -->
<child>
<object class="GtkModelButton" id="about-button">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">_About Web</property>
<property name="action-name">app.about</property>
<property name="visible">True</property>
@@ -357,7 +341,6 @@
</child>
<child>
<object class="GtkBox">
- <property name="can_focus">False</property>
<property name="margin-top">12</property>
<property name="orientation">vertical</property>
<property name="visible">True</property>
@@ -366,7 +349,6 @@
</style>
<child>
<object class="GtkModelButton">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">Import and Export</property>
<property name="visible">True</property>
<property name="centered">True</property>
@@ -377,7 +359,6 @@
</child>
<child>
<object class="GtkModelButton">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">I_mport Bookmarks…</property>
<property name="action-name">app.import-bookmarks</property>
<property name="visible">True</property>
@@ -385,7 +366,6 @@
</child>
<child>
<object class="GtkModelButton">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">E_xport Bookmarks…</property>
<property name="action-name">app.export-bookmarks</property>
<property name="visible">True</property>
@@ -401,7 +381,6 @@
</child>
<child>
<object class="GtkModelButton">
- <property name="can_focus">True</property>
<property name="text" translatable="yes">Import _Passwords…</property>
<property name="action-name">app.import-passwords</property>
<property name="visible">True</property>
diff --git a/src/resources/gtk/page-row.ui b/src/resources/gtk/page-row.ui
index 6fb8006b5..5424ceea2 100644
--- a/src/resources/gtk/page-row.ui
+++ b/src/resources/gtk/page-row.ui
@@ -3,30 +3,25 @@
<interface>
<requires lib="gtk+" version="3.16"/>
<template class="EphyPageRow" parent="GtkListBoxRow">
- <property name="can_focus">True</property>
<signal name="map" handler="update_spinner" swapped="true"/>
<signal name="unmap" handler="update_spinner" swapped="true"/>
<child>
<object class="GtkEventBox">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<signal name="button-release-event" handler="button_release_event" swapped="no"/>
<child>
<object class="GtkBox" id="box">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin-start">3</property>
<property name="margin-end">1</property>
<child>
<object class="GtkStack" id="icon_stack">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_start">4</property>
<property name="margin_end">4</property>
<child>
<object class="GtkImage" id="icon">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="icon_size">1</property>
<property name="pixel_size">16</property>
<property name="margin_top">6</property>
@@ -36,7 +31,6 @@
<child>
<object class="GtkSpinner" id="spinner">
<property name="visible">True</property>
- <property name="can_focus">False</property>
</object>
</child>
</object>
@@ -49,7 +43,6 @@
<child>
<object class="GtkLabel" id="title">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="margin_start">4</property>
@@ -67,7 +60,6 @@
<child>
<object class="GtkImage" id="speaker_icon">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_start">8</property>
<property name="icon_name">audio-volume-high-symbolic</property>
<property name="icon_size">1</property>
@@ -81,7 +73,6 @@
<child>
<object class="GtkButton" id="close_button">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="focus_on_click">False</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">Close page</property>
@@ -92,7 +83,6 @@
<child>
<object class="GtkImage">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="icon_name">window-close-symbolic</property>
<property name="icon_size">1</property>
</object>
diff --git a/src/resources/gtk/passwords-view.ui b/src/resources/gtk/passwords-view.ui
index b8b7cc332..cbfeeaa65 100644
--- a/src/resources/gtk/passwords-view.ui
+++ b/src/resources/gtk/passwords-view.ui
@@ -46,13 +46,11 @@
<child>
<object class="HdyClamp">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<child>
<object class="GtkListBox" id="listbox">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<property name="valign">start</property>
diff --git a/src/resources/gtk/prefs-appearance-page.ui b/src/resources/gtk/prefs-appearance-page.ui
index 7a284e42e..2b784e1aa 100644
--- a/src/resources/gtk/prefs-appearance-page.ui
+++ b/src/resources/gtk/prefs-appearance-page.ui
@@ -168,7 +168,6 @@
<child>
<object class="GtkSpinButton" id="default_zoom_spin_button">
<property name="adjustment">zoom_adjustment</property>
- <property name="can_focus">True</property>
<property name="input_purpose">number</property>
<property name="max_width_chars">5</property>
<property name="valign">center</property>
diff --git a/src/resources/gtk/prefs-lang-dialog.ui b/src/resources/gtk/prefs-lang-dialog.ui
index 90b3fd1c0..d3c189262 100644
--- a/src/resources/gtk/prefs-lang-dialog.ui
+++ b/src/resources/gtk/prefs-lang-dialog.ui
@@ -2,7 +2,6 @@
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkDialog" id="add_language_dialog">
- <property name="can_focus">False</property>
<property name="border_width">5</property>
<property name="role">epiphany-preferences-add-language</property>
<property name="destroy_with_parent">True</property>
@@ -15,7 +14,6 @@
<object class="GtkButton" id="cancelbutton1">
<property name="label" translatable="yes">_Cancel</property>
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
@@ -26,7 +24,6 @@
<object class="GtkButton" id="add_button">
<property name="label" translatable="yes">_Add</property>
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
@@ -36,13 +33,11 @@
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox3">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area3">
<property name="visible">False</property>
- <property name="can_focus">False</property>
<property name="layout_style">end</property>
</object>
<packing>
@@ -55,14 +50,12 @@
<child>
<object class="GtkBox" id="vbox198">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="border_width">5</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="label1309">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Choose a language:</property>
<property name="use_underline">True</property>
@@ -77,13 +70,11 @@
<child>
<object class="GtkScrolledWindow" id="scrolledwindow3">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="languages_treeview">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="headers_visible">False</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="treeview-selection2"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]