Put GtkAdjustments inside adjustment properties

This commit is contained in:
Hugo Posnic 2023-03-22 17:46:30 +01:00
parent e72c4a32ba
commit 9c369ec299

View File

@ -1,30 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="curtail">
<object class="GtkAdjustment" id="jpg_lossy_adj">
<property name="upper">100</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="png_lossless_adj">
<property name="upper">7</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="png_lossy_adj">
<property name="upper">100</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="webp_lossless_adj">
<property name="upper">6</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="webp_lossy_adj">
<property name="upper">100</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<template class="CurtailPrefsWindow" parent="AdwPreferencesWindow">
<property name="title" translatable="yes">Preferences</property>
<property name="modal">True</property>
@ -98,7 +73,13 @@
<property name="activatable-widget">spin_png_lossy_level</property>
<child>
<object class="GtkSpinButton" id="spin_png_lossy_level">
<property name="adjustment">png_lossy_adj</property>
<property name="adjustment">
<object class="GtkAdjustment" id="png_lossy_adj">
<property name="upper">100</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
</property>
<property name="valign">center</property>
</object>
</child>
@ -110,7 +91,13 @@
<property name="activatable-widget">spin_jpg_lossy_level</property>
<child>
<object class="GtkSpinButton" id="spin_jpg_lossy_level">
<property name="adjustment">jpg_lossy_adj</property>
<property name="adjustment">
<object class="GtkAdjustment" id="jpg_lossy_adj">
<property name="upper">100</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
</property>
<property name="valign">center</property>
</object>
</child>
@ -122,7 +109,13 @@
<property name="activatable-widget">spin_webp_lossy_level</property>
<child>
<object class="GtkSpinButton" id="spin_webp_lossy_level">
<property name="adjustment">webp_lossy_adj</property>
<property name="adjustment">
<object class="GtkAdjustment" id="webp_lossy_adj">
<property name="upper">100</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
</property>
<property name="valign">center</property>
</object>
</child>
@ -146,7 +139,13 @@
<property name="activatable-widget">spin_png_lossless_level</property>
<child>
<object class="GtkSpinButton" id="spin_png_lossless_level">
<property name="adjustment">png_lossless_adj</property>
<property name="adjustment">
<object class="GtkAdjustment" id="png_lossless_adj">
<property name="upper">7</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
</property>
<property name="valign">center</property>
</object>
</child>
@ -159,7 +158,13 @@
<property name="activatable-widget">spin_webp_lossless_level</property>
<child>
<object class="GtkSpinButton" id="spin_webp_lossless_level">
<property name="adjustment">webp_lossless_adj</property>
<property name="adjustment">
<object class="GtkAdjustment" id="webp_lossless_adj">
<property name="upper">6</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
</property>
<property name="valign">center</property>
</object>
</child>