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




commit 47b7e54ccef78ab82dfe554bdbcacc0c974df1f9
Author: Jean Felder <jfelder src gnome org>
Date:   Mon Jan 10 15:03:53 2022 +0100

    ui/playlistdialog: 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/PlaylistDialog.ui | 46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/data/ui/PlaylistDialog.ui b/data/ui/PlaylistDialog.ui
index c943222de..e2a9c8528 100644
--- a/data/ui/PlaylistDialog.ui
+++ b/data/ui/PlaylistDialog.ui
@@ -4,29 +4,29 @@
   <template class="PlaylistDialog" parent="GtkDialog">
     <property name="width_request">400</property>
     <property name="height_request">500</property>
-    <property name="can_focus">False</property>
+    <property name="focusable">False</property>
     <property name="modal">True</property>
     <property name="destroy_with_parent">True</property>
     <child internal-child="content_area">
       <object class="GtkBox" id="dialog-vbox">
-        <property name="can_focus">False</property>
+        <property name="focusable">False</property>
         <property name="orientation">vertical</property>
         <child>
           <object class="GtkStack" id="_add_playlist_stack">
             <property name="visible">True</property>
-            <property name="can_focus">False</property>
+            <property name="focusable">False</property>
             <property name="hexpand">True</property>
             <property name="vexpand">True</property>
             <property name="transition_duration">250</property>
             <child>
               <object class="GtkBox" id="_empty_box">
                 <property name="visible">False</property>
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="orientation">vertical</property>
                 <child>
                   <object class="GtkBox">
                     <property name="visible">True</property>
-                    <property name="can_focus">False</property>
+                    <property name="focusable">False</property>
                     <property name="orientation">vertical</property>
                     <property name="valign">fill</property>
                     <property name="vexpand">True</property>
@@ -37,7 +37,7 @@
                     <child>
                       <object class="GtkImage" id="image">
                         <property name="visible">True</property>
-                        <property name="can_focus">False</property>
+                        <property name="focusable">False</property>
                         <property name="valign">center</property>
                         <property name="pixel_size">100</property>
                         <property name="icon_name">emblem-music-symbolic</property>
@@ -52,7 +52,7 @@
                     <child>
                       <object class="GtkLabel" id="label">
                         <property name="visible">True</property>
-                        <property name="can_focus">False</property>
+                        <property name="focusable">False</property>
                         <property name="label" translatable="yes">Enter a name for your first 
playlist</property>
                         <property name="valign">end</property>
                       </object>
@@ -62,7 +62,7 @@
                         <property name="width_request">300</property>
                         <property name="height_request">10</property>
                         <property name="visible">True</property>
-                        <property name="can_focus">True</property>
+                        <property name="focusable">True</property>
                         <property name="halign">center</property>
                         <property name="margin-bottom">16</property>
                         <property name="margin-end">18</property>
@@ -81,7 +81,7 @@
                         <property name="height_request">25</property>
                         <property name="visible">True</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="halign">center</property>
                         <property name="valign">center</property>
@@ -96,7 +96,7 @@
                 </child>
                 <child>
                   <object class="GtkButtonBox">
-                    <property name="can_focus">False</property>
+                    <property name="focusable">False</property>
                   </object>
                 </child>
               </object>
@@ -104,17 +104,17 @@
             <child>
               <object class="GtkBox" id="_normal_box">
                 <property name="visible">False</property>
-                <property name="can_focus">False</property>
+                <property name="focusable">False</property>
                 <property name="orientation">vertical</property>
                 <child>
                   <object class="GtkScrolledWindow" id="scrolledwindow">
                     <property name="visible">True</property>
-                    <property name="can_focus">True</property>
+                    <property name="focusable">True</property>
                     <property name="vexpand">True</property>
                     <child>
                       <object class="GtkListBox" id="_listbox">
                         <property name="visible">True</property>
-                        <property name="can_focus">True</property>
+                        <property name="focusable">True</property>
                         <property name="selection_mode">single</property>
                         <property name="valign">start</property>
                         <signal name="selected-rows-changed" handler="_on_selected_rows_changed" 
swapped="no"/>
@@ -125,18 +125,18 @@
                 <child>
                   <object class="GtkBox">
                     <property name="visible">True</property>
-                    <property name="can_focus">False</property>
+                    <property name="focusable">False</property>
                     <property name="orientation">vertical</property>
                     <child>
                       <object class="GtkSeparator">
                         <property name="visible">True</property>
-                        <property name="can_focus">False</property>
+                        <property name="focusable">False</property>
                       </object>
                     </child>
                     <child>
                       <object class="GtkBox" id="new-playlist-hbox">
                         <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>
@@ -144,7 +144,7 @@
                         <child>
                           <object class="GtkEntry" id="_new_playlist_entry">
                             <property name="visible">True</property>
-                            <property name="can_focus">True</property>
+                            <property name="focusable">True</property>
                             <property name="hexpand">True</property>
                             <property name="placeholder_text" translatable="yes">New Playlist…</property>
                             <signal name="activate" handler="_on_editing_done" swapped="no"/>
@@ -160,7 +160,7 @@
                             <property name="label" translatable="yes">Add</property>
                             <property name="visible">True</property>
                             <property name="sensitive">False</property>
-                            <property name="can_focus">True</property>
+                            <property name="focusable">True</property>
                             <property name="receives_default">False</property>
                             <signal name="clicked" handler="_on_editing_done" swapped="no"/>
                             <style>
@@ -178,7 +178,7 @@
                 </child>
                 <child>
                   <object class="GtkButtonBox">
-                    <property name="can_focus">False</property>
+                    <property name="focusable">False</property>
                   </object>
                 </child>
               </object>
@@ -189,20 +189,20 @@
     </child>
     <child internal-child="action_area">
       <object class="GtkButtonBox">
-        <property name="can_focus">False</property>
+        <property name="focusable">False</property>
       </object>
     </child>
   </template>
   <object class="GtkHeaderBar" id="_title_bar">
     <property name="visible">True</property>
-    <property name="can_focus">False</property>
+    <property name="focusable">False</property>
     <property name="title" translatable="yes">Add to Playlist</property>
     <child>
       <object class="GtkButton" id="_cancel_button">
         <property name="label" translatable="yes">_Cancel</property>
         <property name="use_underline">True</property>
         <property name="visible">True</property>
-        <property name="can_focus">False</property>
+        <property name="focusable">False</property>
         <property name="receives_default">False</property>
         <signal name="clicked" handler="_on_cancel_button_clicked" swapped="no"/>
         <style>
@@ -216,7 +216,7 @@
         <property name="sensitive">False</property>
         <property name="use_underline">True</property>
         <property name="visible">True</property>
-        <property name="can_focus">False</property>
+        <property name="focusable">False</property>
         <property name="receives_default">False</property>
         <signal name="clicked" handler="_on_selection" swapped="no"/>
         <style>


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