[gnome-2048] Clean UI files.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048] Clean UI files.
- Date: Thu, 24 Jan 2019 14:56:46 +0000 (UTC)
commit d5db152d2930eaef07a2af0cbef765345165fa2e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Jan 24 15:54:40 2019 +0100
Clean UI files.
Remove unused id definitions,
add GPLv3+ copyright headers.
data/congrats.ui | 67 ++++++++++++++++++-----------
data/mainwindow.ui | 73 ++++++++++++++++++-------------
data/preferences.ui | 121 +++++++++++++++++++++++++++++-----------------------
3 files changed, 153 insertions(+), 108 deletions(-)
---
diff --git a/data/congrats.ui b/data/congrats.ui
index 43342c2..d789846 100644
--- a/data/congrats.ui
+++ b/data/congrats.ui
@@ -1,30 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.18.3 -->
+<!--
+ This file is part of GNOME 2048
+
+ GNOME 2048 is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ GNOME 2048 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GNOME 2048. If not, see <https://www.gnu.org/licenses/>.
+-->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkDialog" id="congratsdialog">
- <property name="can_focus">False</property>
- <property name="border_width">12</property>
+ <property name="can-focus">False</property>
+ <property name="border-width">12</property>
<!-- Translators: title of the dialog that appears (with default settings) when you reach 2048 -->
<property name="title" translatable="yes">Congratulations!</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
+ <property name="type-hint">dialog</property>
<child internal-child="vbox">
- <object class="GtkBox" id="dialog-vbox1">
- <property name="can_focus">False</property>
+ <object class="GtkBox">
+ <property name="can-focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child internal-child="action_area">
- <object class="GtkButtonBox" id="dialog-action_area1">
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
+ <object class="GtkButtonBox">
+ <property name="can-focus">False</property>
+ <property name="layout-style">end</property>
<child>
<object class="GtkButton" id="button1">
<!-- Translators: button in the "Congratulations" dialog that appears (with default
settings) when you reach 2048 -->
<property name="label" translatable="yes">New Game</property>
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
+ <property name="can-focus">True</property>
+ <property name="receives-default">True</property>
<style>
<class name="suggested-action"/>
</style>
@@ -40,8 +55,8 @@
<!-- Translators: button in the "Congratulations" dialog that appears (with default
settings) when you reach 2048; the player can continue playing after 2048 -->
<property name="label" translatable="yes">Keep Playing</property>
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
+ <property name="can-focus">True</property>
+ <property name="receives-default">True</property>
</object>
<packing>
<property name="expand">True</property>
@@ -57,31 +72,31 @@
</packing>
</child>
<child>
- <object class="GtkGrid" id="grid1">
+ <object class="GtkGrid">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="column_homogeneous">True</property>
+ <property name="can-focus">False</property>
+ <property name="column-homogeneous">True</property>
<child>
<object class="GtkLabel" id="messagelabel">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
</object>
<packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
+ <property name="left-attach">0</property>
+ <property name="top-attach">1</property>
</packing>
</child>
<child>
- <object class="GtkImage" id="image1">
+ <object class="GtkImage">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="pixel_size">145</property>
- <property name="icon_name">face-wink</property>
- <property name="icon_size">6</property>
+ <property name="can-focus">False</property>
+ <property name="pixel-size">145</property>
+ <property name="icon-name">face-wink</property>
+ <property name="icon-size">6</property>
</object>
<packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
+ <property name="left-attach">0</property>
+ <property name="top-attach">0</property>
</packing>
</child>
</object>
diff --git a/data/mainwindow.ui b/data/mainwindow.ui
index e9c9391..060489f 100644
--- a/data/mainwindow.ui
+++ b/data/mainwindow.ui
@@ -1,30 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.22.1 -->
+<!--
+ This file is part of GNOME 2048
+
+ GNOME 2048 is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ GNOME 2048 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GNOME 2048. If not, see <https://www.gnu.org/licenses/>.
+-->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkApplicationWindow" id="applicationwindow">
- <property name="can_focus">False</property>
- <property name="window_position">center</property>
- <property name="default_width">600</property>
- <property name="default_height">600</property>
- <property name="icon_name">gnome-2048</property>
- <property name="show_menubar">False</property>
+ <property name="can-focus">False</property>
+ <property name="window-position">center</property>
+ <property name="default-width">600</property>
+ <property name="default-height">600</property>
+ <property name="icon-name">gnome-2048</property>
+ <property name="show-menubar">False</property>
<child type="titlebar">
<object class="GtkHeaderBar" id="headerbar">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<!-- Translators: title of the window, displayed in the headerbar -->
<property name="title" translatable="yes">GNOME 2048</property>
- <property name="show_close_button">True</property>
+ <property name="show-close-button">True</property>
<child>
<object class="GtkButton" id="undo-button">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="action_name">app.undo</property>
+ <property name="can-focus">True</property>
+ <property name="receives-default">True</property>
+ <property name="action-name">app.undo</property>
<!-- Translators: tooltip text of the Undo button in the headerbar -->
- <property name="tooltip_text" translatable="yes">Undo</property>
- <property name="always_show_image">True</property>
+ <property name="tooltip-text" translatable="yes">Undo</property>
+ <property name="always-show-image">True</property>
<property name="focus-on-click">False</property>
<style>
<class name="image-button"/>
@@ -32,8 +47,8 @@
<child>
<object class="GtkImage">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon_name">edit-undo-symbolic</property>
+ <property name="can-focus">False</property>
+ <property name="icon-name">edit-undo-symbolic</property>
</object>
</child>
</object>
@@ -46,10 +61,10 @@
<!-- Translators: button in the headerbar -->
<property name="label" translatable="yes">_New Game</property>
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="action_name">app.new-game</property>
- <property name="use_underline">True</property>
+ <property name="can-focus">True</property>
+ <property name="receives-default">True</property>
+ <property name="action-name">app.new-game</property>
+ <property name="use-underline">True</property>
<property name="focus-on-click">False</property>
</object>
<packing>
@@ -81,32 +96,32 @@
<child>
<object class="GtkLabel" id="score">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="label">0</property>
</object>
<packing>
- <property name="pack_type">end</property>
+ <property name="pack-type">end</property>
</packing>
</child>
</object>
</child>
<child>
- <object class="GtkGrid" id="grid">
+ <object class="GtkGrid">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<child>
<object class="GtkAspectFrame" id="aspectframe">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label_xalign">0</property>
- <property name="shadow_type">none</property>
+ <property name="can-focus">False</property>
+ <property name="label-xalign">0</property>
+ <property name="shadow-type">none</property>
<child>
<placeholder/>
</child>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="top_attach">1</property>
+ <property name="left-attach">1</property>
+ <property name="top-attach">1</property>
</packing>
</child>
<child>
diff --git a/data/preferences.ui b/data/preferences.ui
index 2455fe7..3724153 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -1,32 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.18.3 -->
+<!--
+ This file is part of GNOME 2048
+
+ GNOME 2048 is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ GNOME 2048 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GNOME 2048. If not, see <https://www.gnu.org/licenses/>.
+-->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkAdjustment" id="animationsspeed">
<property name="lower">20</property>
<property name="upper">200</property>
<property name="value">100</property>
- <property name="step_increment">5</property>
- <property name="page_increment">10</property>
+ <property name="step-increment">5</property>
+ <property name="page-increment">10</property>
</object>
<object class="GtkDialog" id="preferencesdialog">
- <property name="can_focus">False</property>
- <property name="border_width">12</property>
+ <property name="can-focus">False</property>
+ <property name="border-width">12</property>
<!-- Translators: title of the dialog that appears when the users clicks the "Preferences" entry in the
hamburger menu -->
<property name="title" translatable="yes">Preferences</property>
<property name="resizable">False</property>
- <property name="window_position">center-on-parent</property>
- <property name="type_hint">dialog</property>
+ <property name="window-position">center-on-parent</property>
+ <property name="type-hint">dialog</property>
<property name="use-header-bar">1</property>
<child internal-child="vbox">
- <object class="GtkBox" id="dialog-vbox1">
- <property name="can_focus">False</property>
+ <object class="GtkBox">
+ <property name="can-focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
- <object class="GtkButtonBox" id="dialog-action_area1">
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
+ <object class="GtkButtonBox">
+ <property name="can-focus">False</property>
+ <property name="layout-style">end</property>
<child>
<placeholder/>
</child>
@@ -37,33 +52,33 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="pack_type">end</property>
+ <property name="pack-type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
- <object class="GtkGrid" id="grid1">
+ <object class="GtkGrid">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="row_spacing">12</property>
- <property name="column_spacing">6</property>
+ <property name="can-focus">False</property>
+ <property name="row-spacing">12</property>
+ <property name="column-spacing">6</property>
<child>
- <object class="GtkLabel" id="label1">
+ <object class="GtkLabel">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="xalign">1</property>
<!-- Translators: in the preferences dialog; label introducing an option, to change grid
size to 4 × 4 or 5 × 5 -->
<property name="label" translatable="yes">Grid size</property>
</object>
<packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
+ <property name="left-attach">0</property>
+ <property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="gridsizecombo">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="active">0</property>
<items>
<!-- Translators: in the preferences dialog; combobox entry, to change grid size to 4 × 4
-->
@@ -73,81 +88,81 @@
</items>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
+ <property name="left-attach">1</property>
+ <property name="top-attach">0</property>
</packing>
</child>
<child>
- <object class="GtkLabel" id="label3">
+ <object class="GtkLabel">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<!-- Translators: in the preferences dialog; label introducing an option, to change the
animations speed -->
<property name="label" translatable="yes">Animations speed</property>
</object>
<packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
+ <property name="left-attach">0</property>
+ <property name="top-attach">1</property>
</packing>
</child>
<child>
- <object class="GtkScale" id="animsscale">
+ <object class="GtkScale">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can-focus">True</property>
<property name="adjustment">animationsspeed</property>
<property name="inverted">True</property>
- <property name="round_digits">1</property>
- <property name="draw_value">False</property>
+ <property name="round-digits">1</property>
+ <property name="draw-value">False</property>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="top_attach">1</property>
+ <property name="left-attach">1</property>
+ <property name="top-attach">1</property>
</packing>
</child>
<child>
- <object class="GtkLabel" id="label2">
+ <object class="GtkLabel">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="xalign">1</property>
<!-- Translators: in the preferences dialog; label introducing an option, a switch to
display or no congratulations when reaching 2048 -->
<property name="label" translatable="yes">Display congrats</property>
</object>
<packing>
- <property name="left_attach">0</property>
- <property name="top_attach">3</property>
+ <property name="left-attach">0</property>
+ <property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkSwitch" id="congratswitch">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can-focus">True</property>
<property name="active">True</property>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="top_attach">3</property>
+ <property name="left-attach">1</property>
+ <property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="xalign">1</property>
<!-- Translators: in the preferences dialog; label introducing an option, a switch to allow
or not undoing a move -->
<property name="label" translatable="yes">Allow undo</property>
</object>
<packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
+ <property name="left-attach">0</property>
+ <property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GtkSwitch" id="undoswitch">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can-focus">True</property>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="top_attach">2</property>
+ <property name="left-attach">1</property>
+ <property name="top-attach">2</property>
</packing>
</child>
</object>
@@ -160,17 +175,17 @@
</object>
</child>
</object>
- <object class="GtkAdjustment" id="colsadj">
+ <object class="GtkAdjustment">
<property name="lower">1</property>
<property name="upper">8</property>
- <property name="step_increment">1</property>
- <property name="page_increment">1</property>
+ <property name="step-increment">1</property>
+ <property name="page-increment">1</property>
</object>
- <object class="GtkAdjustment" id="rowsadj">
+ <object class="GtkAdjustment">
<property name="lower">1</property>
<property name="upper">8</property>
<property name="value">4</property>
- <property name="step_increment">1</property>
- <property name="page_increment">1</property>
+ <property name="step-increment">1</property>
+ <property name="page-increment">1</property>
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]