extensions-app: Use consistent style for property names

GtkBuilder understands both dashes and underscores in property names,
and we currently use a mix of both. The actual properties use dashes,
so settle on that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>
This commit is contained in:
Florian Müllner 2020-04-15 20:27:15 +02:00 committed by Marge Bot
parent 20a68a609c
commit 8eb1792d39
2 changed files with 77 additions and 77 deletions

View File

@ -9,7 +9,7 @@
<object class="GtkGrid"> <object class="GtkGrid">
<property name="visible">True</property> <property name="visible">True</property>
<property name="margin">12</property> <property name="margin">12</property>
<property name="column_spacing">12</property> <property name="column-spacing">12</property>
<child> <child>
<object class="GtkLabel" id="nameLabel"> <object class="GtkLabel" id="nameLabel">
<property name="visible">True</property> <property name="visible">True</property>
@ -17,8 +17,8 @@
</child> </child>
<child> <child>
<object class="GtkImage" id="errorIcon"> <object class="GtkImage" id="errorIcon">
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="icon_name">dialog-error-symbolic</property> <property name="icon-name">dialog-error-symbolic</property>
<style> <style>
<class name="error"/> <class name="error"/>
</style> </style>
@ -26,8 +26,8 @@
</child> </child>
<child> <child>
<object class="GtkImage" id="updatesIcon"> <object class="GtkImage" id="updatesIcon">
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="icon_name">software-update-available-symbolic</property> <property name="icon-name">software-update-available-symbolic</property>
<style> <style>
<class name="warning"/> <class name="warning"/>
</style> </style>
@ -41,13 +41,13 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="prefsButton"> <object class="GtkButton" id="prefsButton">
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="visible" <property name="visible"
bind-source="prefsButton" bind-source="prefsButton"
bind-property="sensitive" bind-property="sensitive"
bind-flags="sync-create"/> bind-flags="sync-create"/>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="action-name">row.show-prefs</property> <property name="action-name">row.show-prefs</property>
<style> <style>
@ -57,7 +57,7 @@
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property> <property name="visible">True</property>
<property name="icon_name">emblem-system-symbolic</property> <property name="icon-name">emblem-system-symbolic</property>
</object> </object>
</child> </child>
</object> </object>
@ -65,7 +65,7 @@
<child> <child>
<object class="GtkSwitch" id="switch"> <object class="GtkSwitch" id="switch">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="action-name">row.enabled</property> <property name="action-name">row.enabled</property>
</object> </object>
@ -78,8 +78,8 @@
<child> <child>
<object class="GtkButton" id="revealButton"> <object class="GtkButton" id="revealButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="valign">center</property> <property name="valign">center</property>
<style> <style>
<class name="details-button"/> <class name="details-button"/>
@ -89,7 +89,7 @@
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property> <property name="visible">True</property>
<property name="icon_name">pan-end-symbolic</property> <property name="icon-name">pan-end-symbolic</property>
</object> </object>
</child> </child>
</object> </object>
@ -100,9 +100,9 @@
<child> <child>
<object class="GtkGrid"> <object class="GtkGrid">
<property name="visible">True</property> <property name="visible">True</property>
<property name="margin_top">12</property> <property name="margin-top">12</property>
<property name="row_spacing">6</property> <property name="row-spacing">6</property>
<property name="column_spacing">12</property> <property name="column-spacing">12</property>
<child> <child>
<object class="GtkLabel"> <object class="GtkLabel">
<property name="visible">True</property> <property name="visible">True</property>
@ -117,7 +117,7 @@
<object class="GtkLabel" id="descriptionLabel"> <object class="GtkLabel" id="descriptionLabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="ellipsize">end</property> <property name="ellipsize">end</property>
<property name="max_width_chars">60</property> <property name="max-width-chars">60</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="yalign">0</property> <property name="yalign">0</property>
</object> </object>
@ -128,7 +128,7 @@
bind-source="versionLabel" bind-source="versionLabel"
bind-property="visible" bind-property="visible"
bind-flags="sync-create"/> bind-flags="sync-create"/>
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="label" translatable="yes">Version</property> <property name="label" translatable="yes">Version</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<style> <style>
@ -136,18 +136,18 @@
</style> </style>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="versionLabel"> <object class="GtkLabel" id="versionLabel">
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -156,7 +156,7 @@
bind-source="authorLabel" bind-source="authorLabel"
bind-property="visible" bind-property="visible"
bind-flags="sync-create"/> bind-flags="sync-create"/>
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="label" translatable="yes">Author</property> <property name="label" translatable="yes">Author</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<style> <style>
@ -164,18 +164,18 @@
</style> </style>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="authorLabel"> <object class="GtkLabel" id="authorLabel">
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -184,7 +184,7 @@
bind-source="errorLabel" bind-source="errorLabel"
bind-property="visible" bind-property="visible"
bind-flags="sync-create"/> bind-flags="sync-create"/>
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="label" translatable="yes">Error</property> <property name="label" translatable="yes">Error</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="yalign">0</property> <property name="yalign">0</property>
@ -193,34 +193,34 @@
</style> </style>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">3</property> <property name="top-attach">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="errorLabel"> <object class="GtkLabel" id="errorLabel">
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="selectable">True</property> <property name="selectable">True</property>
<property name="wrap">True</property> <property name="wrap">True</property>
<property name="max_width_chars">60</property> <property name="max-width-chars">60</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">3</property> <property name="top-attach">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkButton"> <object class="GtkButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">Website</property> <property name="label" translatable="yes">Website</property>
<property name="action_name">row.show-url</property> <property name="action-name">row.show-url</property>
<property name="valign">end</property> <property name="valign">end</property>
<property name="margin-top">12</property> <property name="margin-top">12</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">4</property> <property name="top-attach">4</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -229,9 +229,9 @@
bind-source="removeButton" bind-source="removeButton"
bind-property="sensitive" bind-property="sensitive"
bind-flags="sync-create"/> bind-flags="sync-create"/>
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<property name="label" translatable="yes">Remove…</property> <property name="label" translatable="yes">Remove…</property>
<property name="action_name">row.uninstall</property> <property name="action-name">row.uninstall</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="valign">end</property> <property name="valign">end</property>
@ -240,16 +240,16 @@
</style> </style>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">4</property> <property name="top-attach">4</property>
</packing> </packing>
</child> </child>
</object> </object>
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
<property name="width">8</property> <property name="width">8</property>
</packing> </packing>
</child> </child>

View File

@ -25,7 +25,7 @@
<object class="GtkLabel"> <object class="GtkLabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">To find and add extensions, visit &lt;a href="https://extensions.gnome.org"&gt;extensions.gnome.org&lt;/a&gt;.</property> <property name="label" translatable="yes">To find and add extensions, visit &lt;a href="https://extensions.gnome.org"&gt;extensions.gnome.org&lt;/a&gt;.</property>
<property name="use_markup">True</property> <property name="use-markup">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
</child> </child>
@ -34,7 +34,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">Warning</property> <property name="label" translatable="yes">Warning</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="margin_top">6</property> <property name="margin-top">6</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>
</attributes> </attributes>
@ -45,7 +45,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">Extensions can cause system issues, including performance problems. If you encounter problems with your system, it is recommended to disable all extensions.</property> <property name="label" translatable="yes">Extensions can cause system issues, including performance problems. If you encounter problems with your system, it is recommended to disable all extensions.</property>
<property name="wrap">True</property> <property name="wrap">True</property>
<property name="max_width_chars">40</property> <property name="max-width-chars">40</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
</child> </child>
@ -53,13 +53,13 @@
</child> </child>
</object> </object>
<template class="ExtensionsWindow" parent="GtkApplicationWindow"> <template class="ExtensionsWindow" parent="GtkApplicationWindow">
<property name="default_width">800</property> <property name="default-width">800</property>
<property name="default_height">500</property> <property name="default-height">500</property>
<property name="title" translatable="yes">Extensions</property> <property name="title" translatable="yes">Extensions</property>
<child type="titlebar"> <child type="titlebar">
<object class="GtkHeaderBar"> <object class="GtkHeaderBar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="show_close_button">True</property> <property name="show-close-button">True</property>
<child> <child>
<object class="GtkMenuButton"> <object class="GtkMenuButton">
<property name="visible">True</property> <property name="visible">True</property>
@ -67,7 +67,7 @@
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property> <property name="visible">True</property>
<property name="icon_name">dialog-information-symbolic</property> <property name="icon-name">dialog-information-symbolic</property>
</object> </object>
</child> </child>
</object> </object>
@ -75,34 +75,34 @@
<child> <child>
<object class="GtkMenuButton" id="menuButton"> <object class="GtkMenuButton" id="menuButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="menu_model">primary-menu</property> <property name="menu-model">primary-menu</property>
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property> <property name="visible">True</property>
<property name="icon_name">open-menu-symbolic</property> <property name="icon-name">open-menu-symbolic</property>
</object> </object>
</child> </child>
</object> </object>
<packing> <packing>
<property name="pack_type">end</property> <property name="pack-type">end</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkToggleButton" id="searchButton"> <object class="GtkToggleButton" id="searchButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property> <property name="visible">True</property>
<property name="icon_name">edit-find-symbolic</property> <property name="icon-name">edit-find-symbolic</property>
</object> </object>
</child> </child>
</object> </object>
<packing> <packing>
<property name="pack_type">end</property> <property name="pack-type">end</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -112,7 +112,7 @@
<property name="valign">center</property> <property name="valign">center</property>
</object> </object>
<packing> <packing>
<property name="pack_type">end</property> <property name="pack-type">end</property>
</packing> </packing>
</child> </child>
</object> </object>
@ -139,12 +139,12 @@
<child> <child>
<object class="GtkStack" id="mainStack"> <object class="GtkStack" id="mainStack">
<property name="visible">True</property> <property name="visible">True</property>
<property name="transition_type">crossfade</property> <property name="transition-type">crossfade</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
<child> <child>
<object class="GtkScrolledWindow" id="scrolledWindow"> <object class="GtkScrolledWindow" id="scrolledWindow">
<property name="visible">True</property> <property name="visible">True</property>
<property name="hscrollbar_policy">never</property> <property name="hscrollbar-policy">never</property>
<child> <child>
<object class="GtkViewport"> <object class="GtkViewport">
<property name="visible">True</property> <property name="visible">True</property>
@ -172,8 +172,8 @@
<child> <child>
<object class="GtkListBox" id="userList"> <object class="GtkListBox" id="userList">
<property name="visible">True</property> <property name="visible">True</property>
<property name="selection_mode">none</property> <property name="selection-mode">none</property>
<property name="margin_bottom">24</property> <property name="margin-bottom">24</property>
<style> <style>
<class name="frame"/> <class name="frame"/>
</style> </style>
@ -196,7 +196,7 @@
<child> <child>
<object class="GtkListBox" id="systemList"> <object class="GtkListBox" id="systemList">
<property name="visible">True</property> <property name="visible">True</property>
<property name="selection_mode">none</property> <property name="selection-mode">none</property>
<style> <style>
<class name="frame"/> <class name="frame"/>
</style> </style>
@ -221,8 +221,8 @@
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property> <property name="visible">True</property>
<property name="pixel_size">96</property> <property name="pixel-size">96</property>
<property name="icon_name">org.gnome.Extensions-symbolic</property> <property name="icon-name">org.gnome.Extensions-symbolic</property>
</object> </object>
</child> </child>
<child> <child>
@ -243,10 +243,10 @@
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="margin_left">100</property> <property name="margin-left">100</property>
<property name="margin_right">100</property> <property name="margin-right">100</property>
<property name="margin_top">100</property> <property name="margin-top">100</property>
<property name="margin_bottom">60</property> <property name="margin-bottom">60</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">12</property> <property name="spacing">12</property>
<child> <child>
@ -281,13 +281,13 @@
</child> </child>
<child> <child>
<object class="GtkActionBar" id="updatesBar"> <object class="GtkActionBar" id="updatesBar">
<property name="no_show_all">True</property> <property name="no-show-all">True</property>
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property> <property name="visible">True</property>
<property name="pixel-size">24</property> <property name="pixel-size">24</property>
<property name="margin">6</property> <property name="margin">6</property>
<property name="icon_name">software-update-available-symbolic</property> <property name="icon-name">software-update-available-symbolic</property>
<style> <style>
<class name="warning"/> <class name="warning"/>
</style> </style>
@ -321,13 +321,13 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="action-name">win.logout</property> <property name="action-name">win.logout</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<style> <style>
<class name="suggested-action"/> <class name="suggested-action"/>
</style> </style>
</object> </object>
<packing> <packing>
<property name="pack_type">end</property> <property name="pack-type">end</property>
</packing> </packing>
</child> </child>
</object> </object>