[gnome-music/wip/jfelder/gtk4-v3: 115/145] ui/songwidget: Use focusable property instead of can-focus




commit 99dfdfe9ad097466ab0826e08f17cd08c90b35b9
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Feb 3 02:04:06 2022 +0100

    ui/songwidget: 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/SongWidget.ui | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/data/ui/SongWidget.ui b/data/ui/SongWidget.ui
index acaa92797..3a2ff6650 100644
--- a/data/ui/SongWidget.ui
+++ b/data/ui/SongWidget.ui
@@ -3,12 +3,12 @@
 <interface>
   <requires lib="gtk+" version="3.10"/>
   <template class="SongWidget" parent="GtkListBoxRow">
-    <property name="can_focus">False</property>
+    <property name="focusable">False</property>
     <property name="selectable">False</property>
     <!-- <signal name="drag_data_received" handler="_on_drag_data_received"/> -->
     <child>
       <object class="GtkBox" id="box1">
-        <property name="can_focus">False</property>
+        <property name="focusable">False</property>
         <property name="spacing">6</property>
         <child>
           <object class="GtkBox" id="_dnd_eventbox">
@@ -29,24 +29,24 @@
         <child>
           <object class="GtkBox" id="box3">
             <property name="width_request">48</property>
-            <property name="can_focus">False</property>
+            <property name="focusable">False</property>
             <property name="homogeneous">True</property>
             <child>
               <object class="GtkImage" id="_play_icon">
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="icon_size">1</property>
               </object>
             </child>
             <child>
               <object class="GtkCheckButton" id="_select_button">
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="receives_default">False</property>
                 <signal name="toggled" handler="_on_select_button_toggled"/>
               </object>
             </child>
             <child>
               <object class="GtkLabel" id="_number_label">
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="halign">end</property>
                 <property name="justify">right</property>
                 <style>
@@ -58,11 +58,11 @@
         </child>
         <child>
           <object class="GtkBox" id="title_box">
-            <property name="can_focus">False</property>
+            <property name="focusable">False</property>
             <property name="hexpand">True</property>
             <child>
               <object class="GtkLabel" id="_title_label">
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="xalign">0</property>
                 <property name="halign">start</property>
                 <property name="hexpand">True</property>
@@ -77,11 +77,11 @@
         <child>
           <object class="GtkBox" id="_artist_box">
             <property name="visible">False</property>
-            <property name="can_focus">False</property>
+            <property name="focusable">False</property>
             <property name="hexpand">True</property>
             <child>
               <object class="GtkLabel" id="_artist_label">
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="xalign">0</property>
                 <property name="halign">start</property>
                 <property name="hexpand">True</property>
@@ -95,13 +95,13 @@
         </child>
         <child>
           <object class="GtkBox" id="_album_duration_box">
-            <property name="can_focus">False</property>
+            <property name="focusable">False</property>
             <property name="hexpand">True</property>
             <property name="spacing">6</property>
             <child>
               <object class="GtkLabel" id="_album_label">
                 <property name="visible">False</property>
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="xalign">0</property>
                 <property name="halign">start</property>
                 <property name="hexpand">True</property>
@@ -112,7 +112,7 @@
             </child>
             <child>
               <object class="GtkLabel" id="_duration_label">
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="halign">end</property>
                 <property name="hexpand">True</property>
                 <property name="single_line_mode">True</property>
@@ -131,7 +131,7 @@
                 <property name="name">star</property>
                 <property name="child">
                   <object class="GtkBox" id="_star_box">
-                    <property name="can_focus">0</property>
+                    <property name="focusable">0</property>
                     <property name="halign">end</property>
                     <property name="valign">center</property>
                     <!-- <signal name="button-release-event" handler="_on_star_toggle" swapped="no"/> -->
@@ -143,7 +143,7 @@
                     </child>
                     <child>
                       <object class="StarImage" id="_star_image">
-                        <property name="can_focus">False</property>
+                        <property name="focusable">False</property>
                         <property name="valign">center</property>
                         <property name="margin-end">12</property>
                         <property name="margin-start">12</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]