In case fractional scaling is enabled, depending on the resolution, mutter may advertise many fractional scaling values which are way more than MAX_SCALE_BUTTONS, making impossible to use higher fractional scaling values in high dpi setups. So, in case scaling is possible, show them as buttons if they fit the buttons limit, otherwise fallback to a combo box that is consistent with the rest of the UI and will allow to use any valid scaling value.
81 lines
3.6 KiB
XML
81 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Generated with glade 3.22.0 -->
|
|
<interface>
|
|
<requires lib="gtk+" version="3.20"/>
|
|
<requires lib="libhandy" version="0.0"/>
|
|
<template class="CcDisplaySettings" parent="GtkListBox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="selection_mode">none</property>
|
|
<child>
|
|
<object class="HdyComboRow" id="orientation_row">
|
|
<property name="width_request">100</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="title" translatable="yes" context="display setting">Orientation</property>
|
|
<signal name="notify::selected-index" handler="on_orientation_selection_changed_cb" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="HdyComboRow" id="resolution_row">
|
|
<property name="width_request">100</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="title" translatable="yes" context="display setting">Resolution</property>
|
|
<signal name="notify::selected-index" handler="on_resolution_selection_changed_cb" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="HdyComboRow" id="refresh_rate_row">
|
|
<property name="width_request">100</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="title" translatable="yes">Refresh Rate</property>
|
|
<signal name="notify::selected-index" handler="on_refresh_rate_selection_changed_cb" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="HdyActionRow" id="underscanning_row">
|
|
<property name="width_request">100</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="title" translatable="yes">Adjust for TV</property>
|
|
<child>
|
|
<object class="GtkSwitch" id="underscanning_switch">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="halign">end</property>
|
|
<property name="valign">center</property>
|
|
<signal name="notify::active" handler="on_underscanning_switch_active_changed_cb" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="HdyActionRow" id="scale_buttons_row">
|
|
<property name="width_request">100</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="title" translatable="yes" context="display setting">Scale</property>
|
|
<child>
|
|
<object class="GtkButtonBox" id="scale_bbox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="halign">end</property>
|
|
<property name="valign">center</property>
|
|
<property name="layout_style">expand</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="HdyComboRow" id="scale_combo_row">
|
|
<property name="width_request">100</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="title" translatable="yes" context="display setting">Scale</property>
|
|
<signal name="notify::selected-index" handler="on_scale_selection_changed_cb" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|