[gnome-games/wip/exalm/cleanups: 2/3] ui: Use canonical property names in ui files



commit 9886a1c4ad1678db2afb0a6888649ae51e42c4e9
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sat Oct 20 01:03:30 2018 +0500

    ui: Use canonical property names in ui files
    
    Avoid underscores in favor of hyphens.

 data/ui/application-window.ui              | 10 +++++-----
 data/ui/collection-box.ui                  |  6 +++---
 data/ui/collection-header-bar.ui           | 10 +++++-----
 data/ui/display-box.ui                     |  2 +-
 data/ui/empty-collection.ui                |  4 ++--
 data/ui/error-display.ui                   |  4 ++--
 data/ui/media-selector.ui                  |  4 ++--
 data/ui/preferences-page-controllers.ui    |  8 ++++----
 data/ui/preferences-page-video.ui          |  4 ++--
 data/ui/preferences-page.ui                |  2 +-
 data/ui/preferences-subpage-keyboard.ui    |  2 +-
 data/ui/preferences-window.ui              |  2 +-
 data/ui/quit-dialog.ui                     |  6 +++---
 data/ui/reset-controller-mapping-dialog.ui |  6 +++---
 data/ui/resume-dialog.ui                   |  4 ++--
 data/ui/resume-failed-dialog.ui            |  4 ++--
 data/ui/sidebar-view.ui                    |  2 +-
 17 files changed, 40 insertions(+), 40 deletions(-)
---
diff --git a/data/ui/application-window.ui b/data/ui/application-window.ui
index bf0f68de..443f718e 100644
--- a/data/ui/application-window.ui
+++ b/data/ui/application-window.ui
@@ -3,9 +3,9 @@
 <interface>
   <requires lib="gtk+" version="3.16"/>
   <template class="GamesApplicationWindow" parent="GtkApplicationWindow">
-    <property name="default_width">768</property>
-    <property name="default_height">600</property>
-    <property name="show_menubar">False</property>
+    <property name="default-width">768</property>
+    <property name="default-height">600</property>
+    <property name="show-menubar">False</property>
     <signal name="delete-event" after="yes" handler="on_delete_event"/>
     <signal name="key-press-event" after="yes" handler="on_key_pressed"/>
     <signal name="button-press-event" after="yes" handler="on_button_pressed"/>
@@ -43,7 +43,7 @@
             <child>
               <object class="GamesCollectionHeaderBar" id="collection_header_bar">
                 <property name="visible">True</property>
-                <property name="show_close_button">True</property>
+                <property name="show-close-button">True</property>
               </object>
               <packing>
                 <property name="name">collection</property>
@@ -52,7 +52,7 @@
             <child>
               <object class="GamesDisplayHeaderBar" id="display_header_bar">
                 <property name="visible">True</property>
-                <property name="show_close_button">True</property>
+                <property name="show-close-button">True</property>
                 <signal name="back" handler="on_display_back"/>
               </object>
               <packing>
diff --git a/data/ui/collection-box.ui b/data/ui/collection-box.ui
index 5864ab3b..eaa66002 100644
--- a/data/ui/collection-box.ui
+++ b/data/ui/collection-box.ui
@@ -86,9 +86,9 @@
                 <child>
                   <object class="GtkButton">
                     <property name="visible">True</property>
-                    <property name="can_focus">True</property>
+                    <property name="can-focus">True</property>
                     <property name="image">close_icon</property>
-                    <property name="always_show_image">True</property>
+                    <property name="always-show-image">True</property>
                     <signal name="clicked" handler="on_loading_notification_closed"/>
                     <style>
                       <class name="flat"/>
@@ -107,6 +107,6 @@
   </template>
   <object class="GtkImage" id="close_icon">
     <property name="visible">True</property>
-    <property name="icon_name">window-close-symbolic</property>
+    <property name="icon-name">window-close-symbolic</property>
   </object>
 </interface>
diff --git a/data/ui/collection-header-bar.ui b/data/ui/collection-header-bar.ui
index 9f4d3dab..06d5f54b 100644
--- a/data/ui/collection-header-bar.ui
+++ b/data/ui/collection-header-bar.ui
@@ -33,7 +33,7 @@
       <object class="GtkMenuButton" id="menu">
         <property name="popover">menu_popover</property>
         <!-- Translators: tooltip for the application menu button -->
-        <property name="tooltip_text" translatable="yes">Menu</property>
+        <property name="tooltip-text" translatable="yes">Menu</property>
         <property name="use-underline">True</property>
         <property name="valign">center</property>
         <property name="visible">True</property>
@@ -107,7 +107,7 @@
         <property name="visible">True</property>
         <child>
           <object class="GtkModelButton">
-            <property name="can_focus">True</property>
+            <property name="can-focus">True</property>
             <property name="text" translatable="yes">Preferences</property>
             <property name="action-name">app.preferences</property>
             <property name="visible">True</property>
@@ -115,7 +115,7 @@
         </child>
         <child>
           <object class="GtkModelButton">
-            <property name="can_focus">True</property>
+            <property name="can-focus">True</property>
             <property name="text" translatable="yes">Keyboard Shortcuts</property>
             <property name="action-name">app.shortcuts</property>
             <property name="visible">True</property>
@@ -123,7 +123,7 @@
         </child>
         <child>
           <object class="GtkModelButton">
-            <property name="can_focus">True</property>
+            <property name="can-focus">True</property>
             <property name="text" translatable="yes">Help</property>
             <property name="action-name">app.help</property>
             <property name="visible">True</property>
@@ -131,7 +131,7 @@
         </child>
         <child>
           <object class="GtkModelButton">
-            <property name="can_focus">True</property>
+            <property name="can-focus">True</property>
             <property name="text" translatable="yes">About Games</property>
             <property name="action-name">app.about</property>
             <property name="visible">True</property>
diff --git a/data/ui/display-box.ui b/data/ui/display-box.ui
index 8c9af997..2e7d8aad 100644
--- a/data/ui/display-box.ui
+++ b/data/ui/display-box.ui
@@ -9,7 +9,7 @@
         <child type="titlebar">
           <object class="GamesDisplayHeaderBar" id="fullscreen_header_bar">
             <property name="visible">True</property>
-            <property name="show_close_button">False</property>
+            <property name="show-close-button">False</property>
             <signal name="back" handler="on_fullscreen_header_bar_back"/>
           </object>
         </child>
diff --git a/data/ui/empty-collection.ui b/data/ui/empty-collection.ui
index 4b1ed78c..77b16f44 100644
--- a/data/ui/empty-collection.ui
+++ b/data/ui/empty-collection.ui
@@ -10,7 +10,7 @@
       <object class="GtkImage" id="icon">
         <property name="visible">True</property>
         <property name="valign">center</property>
-        <property name="pixel_size">128</property>
+        <property name="pixel-size">128</property>
         <property name="icon-size">0</property>
         <property name="margin-bottom">18</property>
         <style>
@@ -42,7 +42,7 @@
             <property name="opacity">0.5</property>
             <property name="label" translatable="yes">Install games or add directories containing games to 
your search sources.</property>
             <property name="justify">left</property>
-            <property name="use_markup">true</property>
+            <property name="use-markup">true</property>
             <property name="wrap">true</property>
           </object>
         </child>
diff --git a/data/ui/error-display.ui b/data/ui/error-display.ui
index 42c7e0ca..cb5d605f 100644
--- a/data/ui/error-display.ui
+++ b/data/ui/error-display.ui
@@ -10,8 +10,8 @@
       <object class="GtkImage" id="icon">
         <property name="visible">True</property>
         <property name="valign">center</property>
-        <property name="pixel_size">128</property>
-        <property name="icon_name">face-uncertain-symbolic</property>
+        <property name="pixel-size">128</property>
+        <property name="icon-name">face-uncertain-symbolic</property>
         <property name="icon-size">0</property>
         <property name="margin-bottom">18</property>
         <style>
diff --git a/data/ui/media-selector.ui b/data/ui/media-selector.ui
index 8d755417..57553bff 100644
--- a/data/ui/media-selector.ui
+++ b/data/ui/media-selector.ui
@@ -5,7 +5,7 @@
     <child>
       <object class="GtkFrame">
         <property name="visible">True</property>
-        <property name="shadow_type">none</property>
+        <property name="shadow-type">none</property>
         <child>
           <object class="GtkListBox" id="list_box">
             <property name="visible">True</property>
@@ -13,7 +13,7 @@
             <property name="margin-bottom">6</property>
             <property name="margin-start">6</property>
             <property name="margin-end">6</property>
-            <property name="selection_mode">none</property>
+            <property name="selection-mode">none</property>
             <signal name="row-activated" after="yes" handler="on_row_activated"/>
           </object>
         </child>
diff --git a/data/ui/preferences-page-controllers.ui b/data/ui/preferences-page-controllers.ui
index e79b321a..e4dc3d99 100644
--- a/data/ui/preferences-page-controllers.ui
+++ b/data/ui/preferences-page-controllers.ui
@@ -15,11 +15,11 @@
     <child>
       <object class="GtkFrame" id="gamepads_frame">
         <property name="visible">True</property>
-        <property name="shadow_type">in</property>
+        <property name="shadow-type">in</property>
         <child>
           <object class="GtkListBox" id="gamepads_list_box">
             <property name="visible">True</property>
-            <property name="selection_mode">none</property>
+            <property name="selection-mode">none</property>
             <signal name="row-activated" handler="gamepads_list_box_row_activated"/>
           </object>
         </child>
@@ -38,11 +38,11 @@
     <child>
       <object class="GtkFrame">
         <property name="visible">True</property>
-        <property name="shadow_type">in</property>
+        <property name="shadow-type">in</property>
         <child>
           <object class="GtkListBox" id="keyboard_list_box">
             <property name="visible">True</property>
-            <property name="selection_mode">none</property>
+            <property name="selection-mode">none</property>
             <signal name="row-activated" handler="keyboard_list_box_row_activated"/>
           </object>
         </child>
diff --git a/data/ui/preferences-page-video.ui b/data/ui/preferences-page-video.ui
index 11751faf..d02e9f00 100644
--- a/data/ui/preferences-page-video.ui
+++ b/data/ui/preferences-page-video.ui
@@ -15,11 +15,11 @@
     <child>
       <object class="GtkFrame">
         <property name="visible">True</property>
-        <property name="shadow_type">in</property>
+        <property name="shadow-type">in</property>
         <child>
           <object class="GtkListBox" id="filter_list_box">
             <property name="visible">True</property>
-            <property name="selection_mode">none</property>
+            <property name="selection-mode">none</property>
             <signal name="row-activated" handler="filter_list_box_row_activated"/>
           </object>
         </child>
diff --git a/data/ui/preferences-page.ui b/data/ui/preferences-page.ui
index 34cb1aff..c6be5815 100644
--- a/data/ui/preferences-page.ui
+++ b/data/ui/preferences-page.ui
@@ -13,7 +13,7 @@
               <object class="HdyColumn">
                 <property name="visible">True</property>
                 <property name="expand">True</property>
-                <property name="maximum_width">600</property>
+                <property name="maximum-width">600</property>
                 <property name="linear-growth-width">300</property>
                 <child>
                   <object class="GtkBox" id="box">
diff --git a/data/ui/preferences-subpage-keyboard.ui b/data/ui/preferences-subpage-keyboard.ui
index c541a34d..a6baa696 100644
--- a/data/ui/preferences-subpage-keyboard.ui
+++ b/data/ui/preferences-subpage-keyboard.ui
@@ -2,7 +2,7 @@
 <interface>
   <template class="GamesPreferencesSubpageKeyboard" parent="GtkBox">
     <property name="visible">True</property>
-    <property name="can_focus">True</property>
+    <property name="can-focus">True</property>
     <property name="orientation">vertical</property>
     <child>
       <object class="GtkStack" id="gamepad_view_stack">
diff --git a/data/ui/preferences-window.ui b/data/ui/preferences-window.ui
index 3e10d978..868abac9 100644
--- a/data/ui/preferences-window.ui
+++ b/data/ui/preferences-window.ui
@@ -24,7 +24,7 @@
                     <property name="visible">True</property>
                     <property name="title" translatable="yes">Preferences</property>
                     <property name="show-close-button">True</property>
-                    <property name="decoration_layout">menu</property>
+                    <property name="decoration-layout">menu</property>
                   </object>
                 </child>
                 <child>
diff --git a/data/ui/quit-dialog.ui b/data/ui/quit-dialog.ui
index 390cc19f..8c53240e 100644
--- a/data/ui/quit-dialog.ui
+++ b/data/ui/quit-dialog.ui
@@ -4,10 +4,10 @@
   <template class="GamesQuitDialog" parent="GamesMessageDialog">
     <property name="modal">True</property>
     <property name="destroy-with-parent">True</property>
-    <property name="type_hint">dialog</property>
-    <property name="message_type">question</property>
+    <property name="type-hint">dialog</property>
+    <property name="message-type">question</property>
     <property name="text" translatable="yes">Are you sure you want to quit?</property>
-    <property name="secondary_text" translatable="yes">All unsaved progress will be lost.</property>
+    <property name="secondary-text" translatable="yes">All unsaved progress will be lost.</property>
     <child type="action">
       <object class="GtkButton" id="button_cancel">
         <property name="visible">True</property>
diff --git a/data/ui/reset-controller-mapping-dialog.ui b/data/ui/reset-controller-mapping-dialog.ui
index 71249363..dbff4b30 100644
--- a/data/ui/reset-controller-mapping-dialog.ui
+++ b/data/ui/reset-controller-mapping-dialog.ui
@@ -4,10 +4,10 @@
   <template class="GamesResetControllerMappingDialog" parent="GtkMessageDialog">
     <property name="modal">True</property>
     <property name="destroy-with-parent">True</property>
-    <property name="type_hint">dialog</property>
-    <property name="message_type">question</property>
+    <property name="type-hint">dialog</property>
+    <property name="message-type">question</property>
     <property name="text" translatable="yes">Factory reset mapping for this controller?</property>
-    <property name="secondary_text" translatable="yes">Your mapping will be lost.</property>
+    <property name="secondary-text" translatable="yes">Your mapping will be lost.</property>
     <child type="action">
       <object class="GtkButton" id="button_cancel">
         <property name="visible">True</property>
diff --git a/data/ui/resume-dialog.ui b/data/ui/resume-dialog.ui
index 08005fd1..064136f2 100644
--- a/data/ui/resume-dialog.ui
+++ b/data/ui/resume-dialog.ui
@@ -4,8 +4,8 @@
   <template class="GamesResumeDialog" parent="GamesMessageDialog">
     <property name="modal">True</property>
     <property name="destroy-with-parent">True</property>
-    <property name="type_hint">dialog</property>
-    <property name="message_type">question</property>
+    <property name="type-hint">dialog</property>
+    <property name="message-type">question</property>
     <property name="text" translatable="yes">Resume last game?</property>
     <child type="action">
       <object class="GtkButton" id="button_reset">
diff --git a/data/ui/resume-failed-dialog.ui b/data/ui/resume-failed-dialog.ui
index 8d61c86f..bd1cc9eb 100644
--- a/data/ui/resume-failed-dialog.ui
+++ b/data/ui/resume-failed-dialog.ui
@@ -4,8 +4,8 @@
   <template class="GamesResumeFailedDialog" parent="GamesMessageDialog">
     <property name="modal">True</property>
     <property name="destroy-with-parent">True</property>
-    <property name="type_hint">dialog</property>
-    <property name="message_type">question</property>
+    <property name="type-hint">dialog</property>
+    <property name="message-type">question</property>
     <property name="text" translatable="yes">Resuming failed. Do you want to restart the game?</property>
     <child type="action">
       <object class="GtkButton" id="button_cancel">
diff --git a/data/ui/sidebar-view.ui b/data/ui/sidebar-view.ui
index 8b8f8d27..0617dc21 100644
--- a/data/ui/sidebar-view.ui
+++ b/data/ui/sidebar-view.ui
@@ -10,7 +10,7 @@
       <object class="GtkScrolledWindow">
         <property name="visible">True</property>
         <property name="vexpand">True</property>
-        <property name="width_request">250</property>
+        <property name="width-request">250</property>
         <child>
           <object class="GtkListBox" id="list_box">
             <property name="visible">True</property>


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