[gnome-music/wip/jfelder/gtk4-v3: 99/166] ui/appmenu: Use focusable property instead of can-focus




commit 952349785a4deaf7e8eb48ae33d70c38c7e11a0d
Author: Jean Felder <jfelder src gnome org>
Date:   Wed Feb 2 18:38:15 2022 +0100

    ui/appmenu: 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/AppMenu.ui | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/data/ui/AppMenu.ui b/data/ui/AppMenu.ui
index 1265dbcbd..4bce426f8 100644
--- a/data/ui/AppMenu.ui
+++ b/data/ui/AppMenu.ui
@@ -3,11 +3,11 @@
 <interface>
   <requires lib="gtk+" version="3.20"/>
   <template class="AppMenu" parent="GtkPopoverMenu">
-    <property name="can_focus">False</property>
+    <property name="focusable">False</property>
     <child>
       <object class="GtkBox">
         <property name="visible">True</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>
@@ -15,7 +15,7 @@
         <property name="orientation">vertical</property>
         <child>
           <object class="GtkModelButton" id="lastfm_account_button">
-            <property name="can_focus">False</property>
+            <property name="focusable">False</property>
             <property name="halign">fill</property>
             <property name="hexpand">False</property>
             <property name="visible">True</property>
@@ -30,7 +30,7 @@
             <property name="visible">False</property>
             <child>
               <object class="GtkLabel">
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="margin-end">12</property>
                 <property name="halign">start</property>
                 <property name="hexpand">False</property>
@@ -40,7 +40,7 @@
             </child>
             <child>
               <object class="GtkSwitch" id="_lastfm_switch">
-                <property name="can_focus">True</property>
+                <property name="focusable">True</property>
                 <property name="halign">end</property>
                 <property name="visible">True</property>
               </object>
@@ -57,7 +57,7 @@
             <property name="halign">fill</property>
             <property name="hexpand">False</property>
             <property name="visible">True</property>
-            <property name="can_focus">True</property>
+            <property name="focusable">True</property>
             <property name="receives_default">True</property>
             <property name="action_name">win.show-help-overlay</property>
             <property name="text" translatable="yes">_Keyboard Shortcuts</property>
@@ -68,7 +68,7 @@
             <property name="halign">fill</property>
             <property name="hexpand">False</property>
             <property name="visible">True</property>
-            <property name="can_focus">True</property>
+            <property name="focusable">True</property>
             <property name="receives_default">True</property>
             <property name="action_name">app.help</property>
             <property name="text" translatable="yes">_Help</property>
@@ -79,7 +79,7 @@
             <property name="halign">fill</property>
             <property name="hexpand">False</property>
             <property name="visible">True</property>
-            <property name="can_focus">True</property>
+            <property name="focusable">True</property>
             <property name="receives_default">True</property>
             <property name="action_name">app.about</property>
             <property name="text" translatable="yes">_About Music</property>


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