[gnome-music/wip/jfelder/gtk4-v3: 117/175] ui/playertoolbar: Use focusable property instead of can-focus
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gtk4-v3: 117/175] ui/playertoolbar: Use focusable property instead of can-focus
- Date: Tue, 8 Feb 2022 12:27:47 +0000 (UTC)
commit 3c38d0f8770c142272f7c2c9c08341f1b4f033ae
Author: Jean Felder <jfelder src gnome org>
Date: Thu Feb 3 14:52:52 2022 +0100
ui/playertoolbar: Use focusable property instead of can-focus
The can-focus property has been renamed to focusable in Gtk4 and the
new can-focus property means that the focus cannot enter the widget or
any of its descendents.
data/ui/PlayerToolbar.ui | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/data/ui/PlayerToolbar.ui b/data/ui/PlayerToolbar.ui
index b2d7ebfa2..07195b0bf 100644
--- a/data/ui/PlayerToolbar.ui
+++ b/data/ui/PlayerToolbar.ui
@@ -2,11 +2,11 @@
<interface>
<requires lib="gtk+" version="3.12"/>
<template class="PlayerToolbar" parent="GtkActionBar">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="revealed">False</property>
<child>
<object class="GtkBox" id="_song_info_box">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="halign">center</property>
<property name="has_tooltip">True</property>
<property name="valign">center</property>
@@ -18,12 +18,12 @@
<signal name="query-tooltip" handler="_on_tooltip_query"/>
<child>
<object class="ArtStack" id="_art_stack">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
</object>
</child>
<child>
<object class="GtkBox" id="nowplaying_labels">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
@@ -31,7 +31,7 @@
<property name="spacing">3</property>
<child>
<object class="GtkLabel" id="_title_label">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="halign">start</property>
<property name="ellipsize">middle</property>
<property name="max_width_chars">28</property>
@@ -42,7 +42,7 @@
</child>
<child>
<object class="GtkLabel" id="_artist_label">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="halign">start</property>
<property name="ellipsize">middle</property>
<property name="max_width_chars">28</property>
@@ -56,21 +56,21 @@
<object class="GtkBox" id="_buttons_and_scale">
<property name="hexpand">True</property>
<property name="orientation">vertical</property>
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="margin-bottom">6</property>
<property name="margin-end">6</property>
<property name="margin-start">6</property>
<property name="margin-top">6</property>
<child>
<object class="GtkBox" id="buttons">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="halign">center</property>
<property name="spacing">4</property>
<child>
<object class="GtkButton" id="_prev_button">
<property name="width_request">42</property>
<property name="sensitive">False</property>
- <property name="can_focus">True</property>
+ <property name="focusable">True</property>
<property name="receives_default">True</property>
<property name="icon_name">media-skip-backward-symbolic</property>
<property name="tooltip_text" translatable="yes">Previous</property>
@@ -85,7 +85,7 @@
<object class="GtkButton" id="_play_button">
<property name="width_request">80</property>
<property name="sensitive">False</property>
- <property name="can_focus">True</property>
+ <property name="focusable">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Play</property>
<signal name="clicked" handler="_on_play_button_clicked" swapped="no"/>
@@ -105,7 +105,7 @@
<object class="GtkButton" id="_next_button">
<property name="width_request">42</property>
<property name="sensitive">False</property>
- <property name="can_focus">True</property>
+ <property name="focusable">True</property>
<property name="receives_default">True</property>
<property name="icon_name">media-skip-forward-symbolic</property>
<property name="tooltip_text" translatable="yes">Next</property>
@@ -127,11 +127,11 @@
<child>
<object class="GtkBox" id="scale_and_timer">
<property name="orientation">horizontal</property>
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="margin_top">12</property>
<child>
<object class="GtkLabel" id="_progress_time_label">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="label">0∶00</property>
@@ -142,7 +142,7 @@
</child>
<child>
<object class="SmoothScale" id="_progress_scale">
- <property name="can_focus">True</property>
+ <property name="focusable">True</property>
<property name="valign">center</property>
<property name="hexpand">True</property>
<property name="draw_value">False</property>
@@ -154,7 +154,7 @@
</child>
<child>
<object class="GtkLabel" id="_duration_label">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="label">0∶00</property>
@@ -172,7 +172,7 @@
<child type="end">
<object class="GtkBox" id="menuBox">
<property name="height_request">34</property>
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="margin-bottom">6</property>
@@ -181,22 +181,22 @@
<property name="margin-top">6</property>
<child>
<object class="GtkMenuButton" id="_repeat_menu_button">
- <property name="can_focus">True</property>
+ <property name="focusable">True</property>
<property name="receives_default">True</property>
<child>
<object class="GtkBox" id="replayBox">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage" id="_repeat_image">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="icon_name">media-playlist-consecutive-symbolic</property>
<property name="icon_size">1</property>
</object>
</child>
<child>
<object class="GtkImage" id="downArrow">
- <property name="can_focus">False</property>
+ <property name="focusable">False</property>
<property name="icon_name">pan-down-symbolic</property>
<property name="icon_size">1</property>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]