[gnome-music/wip/jfelder/gtk4-v3: 138/144] ui/albumcover: Use focusable property instead of can-focus




commit 2c72c3d56a77915d527371f14c05442e577e82e9
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Feb 3 21:04:48 2022 +0100

    ui/albumcover: 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/AlbumCover.ui | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/AlbumCover.ui b/data/ui/AlbumCover.ui
index 20c356c13..da3230278 100644
--- a/data/ui/AlbumCover.ui
+++ b/data/ui/AlbumCover.ui
@@ -4,18 +4,18 @@
   <template class="AlbumCover" parent="GtkFlowBoxChild">
     <child>
       <object class="GtkBox">
-        <property name="can_focus">False</property>
+        <property name="focusable">False</property>
         <property name="has_tooltip">True</property>
         <property name="valign">start</property>
         <property name="orientation">vertical</property>
         <signal name="query-tooltip" handler="_on_tooltip_query"/>
         <child>
           <object class="GtkOverlay">
-            <property name="can_focus">False</property>
+            <property name="focusable">False</property>
             <property name="margin-bottom">4</property>
             <child>
               <object class="ArtStack" id="_art_stack">
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="vexpand">True</property>
                 <property name="valign">end</property>
                 <property name="halign">center</property>
@@ -23,7 +23,7 @@
             </child>
             <child type="overlay">
               <object class="GtkCheckButton" id="_check">
-                <property name="can_focus">True</property>
+                <property name="focusable">True</property>
                 <property name="receives_default">False</property>
                 <property name="halign">end</property>
                 <property name="valign">end</property>
@@ -34,7 +34,7 @@
         </child>
         <child>
           <object class="GtkLabel" id="_title_label">
-            <property name="can_focus">False</property>
+            <property name="focusable">False</property>
             <property name="justify">center</property>
             <property name="wrap">True</property>
             <property name="ellipsize">middle</property>
@@ -44,7 +44,7 @@
         </child>
         <child>
           <object class="GtkLabel" id="_artist_label">
-            <property name="can_focus">False</property>
+            <property name="focusable">False</property>
             <property name="ellipsize">middle</property>
             <property name="max_width_chars">20</property>
             <style>


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