2012-12-09 19:38:32 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
|
|
|
<!-- interface-requires gtk+ 3.0 -->
|
2021-11-29 10:37:01 -03:00
|
|
|
<template class="CEPageIP4" parent="AdwBin">
|
2012-12-09 19:38:32 -05:00
|
|
|
<child>
|
2021-11-29 10:37:01 -03:00
|
|
|
<object class="GtkScrolledWindow">
|
|
|
|
<property name="hscrollbar_policy">never</property>
|
2012-12-09 19:38:32 -05:00
|
|
|
<child>
|
2021-11-29 10:37:01 -03:00
|
|
|
<object class="GtkViewport">
|
2012-12-09 19:38:32 -05:00
|
|
|
<child>
|
2021-11-29 10:37:01 -03:00
|
|
|
<object class="GtkGrid" id="main_box">
|
|
|
|
<property name="margin_start">24</property>
|
|
|
|
<property name="margin_end">24</property>
|
|
|
|
<property name="margin_top">24</property>
|
|
|
|
<property name="margin_bottom">24</property>
|
2012-12-09 19:38:32 -05:00
|
|
|
<property name="orientation">vertical</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<property name="row-spacing">6</property>
|
|
|
|
<property name="column-spacing">6</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label" translatable="yes">IPv_4 Method</property>
|
|
|
|
<property name="use_underline">True</property>
|
|
|
|
<property name="mnemonic_widget">disabled_radio</property>
|
|
|
|
<property name="xalign">0.0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="row">0</property>
|
|
|
|
<property name="column">0</property>
|
|
|
|
</layout>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="weight" value="bold"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkCheckButton" id="automatic_radio">
|
|
|
|
<property name="label" translatable="yes">Automatic (DHCP)</property>
|
2022-12-12 17:44:51 +01:00
|
|
|
<property name="action-name">ip4page.ip4method</property>
|
|
|
|
<property name="action-target">'automatic'</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<layout>
|
|
|
|
<property name="row">0</property>
|
|
|
|
<property name="column">1</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkCheckButton" id="local_radio">
|
|
|
|
<property name="label" translatable="yes">Link-Local Only</property>
|
2022-12-12 17:44:51 +01:00
|
|
|
<property name="action-name">ip4page.ip4method</property>
|
|
|
|
<property name="action-target">'local'</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<layout>
|
|
|
|
<property name="row">0</property>
|
|
|
|
<property name="column">2</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkCheckButton" id="manual_radio">
|
|
|
|
<property name="label" translatable="yes">Manual</property>
|
2022-12-12 17:44:51 +01:00
|
|
|
<property name="action-name">ip4page.ip4method</property>
|
|
|
|
<property name="action-target">'manual'</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<layout>
|
|
|
|
<property name="row">1</property>
|
|
|
|
<property name="column">1</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkCheckButton" id="disabled_radio">
|
|
|
|
<property name="label" translatable="yes">Disable</property>
|
2022-12-12 17:44:51 +01:00
|
|
|
<property name="action-name">ip4page.ip4method</property>
|
|
|
|
<property name="action-target">'disabled'</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<layout>
|
|
|
|
<property name="row">1</property>
|
|
|
|
<property name="column">2</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkCheckButton" id="shared_radio">
|
|
|
|
<property name="label" translatable="yes">Shared to other computers</property>
|
2022-12-12 17:44:51 +01:00
|
|
|
<property name="action-name">ip4page.ip4method</property>
|
|
|
|
<property name="action-target">'shared'</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<layout>
|
|
|
|
<property name="row">2</property>
|
|
|
|
<property name="column">1</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
2012-12-09 19:38:32 -05:00
|
|
|
<child>
|
2021-11-29 10:37:01 -03:00
|
|
|
<object class="GtkBox" id="content_box">
|
2012-12-09 19:38:32 -05:00
|
|
|
<property name="orientation">vertical</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<property name="spacing">6</property>
|
|
|
|
<layout>
|
|
|
|
<property name="row">3</property>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="column-span">3</property>
|
|
|
|
</layout>
|
2012-12-09 19:38:32 -05:00
|
|
|
<child>
|
2021-11-29 10:37:01 -03:00
|
|
|
<object class="GtkBox" id="address_box">
|
|
|
|
<property name="orientation">vertical</property>
|
2017-05-23 15:02:45 -03:00
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
2021-11-29 10:37:01 -03:00
|
|
|
<property name="xalign">0</property>
|
|
|
|
<property name="label" translatable="yes">Addresses</property>
|
|
|
|
<property name="margin_top">24</property>
|
|
|
|
<property name="margin_bottom">8</property>
|
2017-05-23 15:02:45 -03:00
|
|
|
<attributes>
|
2021-11-29 10:37:01 -03:00
|
|
|
<attribute name="weight" value="bold"/>
|
2017-05-23 15:02:45 -03:00
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2021-11-29 10:37:01 -03:00
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="orientation">horizontal</property>
|
|
|
|
<child>
|
2022-06-12 21:41:45 +02:00
|
|
|
<object class="GtkLabel" id="address_address_label">
|
2021-11-29 10:37:01 -03:00
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="label" translatable="yes">Address</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label" />
|
|
|
|
</style>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="0.8"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2022-06-12 21:41:45 +02:00
|
|
|
<object class="GtkLabel" id="address_netmask_label">
|
2021-11-29 10:37:01 -03:00
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="label" translatable="yes">Netmask</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label" />
|
|
|
|
</style>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="0.8"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2022-06-12 21:41:45 +02:00
|
|
|
<object class="GtkLabel" id="address_gateway_label">
|
2021-11-29 10:37:01 -03:00
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="label" translatable="yes">Gateway</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label" />
|
|
|
|
</style>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="0.8"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- This invisible box is used to add some width in the
|
|
|
|
end of the header row, assuming the space used by the
|
|
|
|
delete button in the rows -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="address_stub_box">
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<object class="GtkBox" id="dns_box">
|
|
|
|
<property name="orientation">vertical</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<property name="spacing">6</property>
|
|
|
|
<child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="margin_top">24</property>
|
|
|
|
<property name="spacing">6</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="dns4_label">
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="xalign">0</property>
|
|
|
|
<property name="label" translatable="yes">DNS</property>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="weight" value="bold"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="auto_dns_label">
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="xalign">1</property>
|
|
|
|
<property name="label" translatable="yes">Automatic</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkSwitch" id="auto_dns_switch">
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Automatic DNS</property>
|
|
|
|
</accessibility>
|
|
|
|
</object>
|
|
|
|
</child>
|
2017-05-23 15:02:45 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<object class="GtkEntry" id="dns_entry">
|
2021-11-29 10:37:01 -03:00
|
|
|
<accessibility>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<property name="label" translatable="yes">DNS server address(es)</property>
|
|
|
|
<relation name="described-by">dns_multiple_help</relation>
|
2021-11-29 10:37:01 -03:00
|
|
|
</accessibility>
|
2017-05-23 15:02:45 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
2017-05-23 13:04:52 -03:00
|
|
|
<child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<object class="GtkLabel" id="dns_multiple_help">
|
2021-11-29 10:37:01 -03:00
|
|
|
<property name="xalign">0</property>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<property name="label" translatable="yes">Separate IP addresses with commas</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label" />
|
|
|
|
</style>
|
2017-05-23 13:04:52 -03:00
|
|
|
<attributes>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<attribute name="scale" value="0.8"/>
|
2017-05-23 13:04:52 -03:00
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
2021-11-29 10:37:01 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="routes_box">
|
|
|
|
<property name="orientation">vertical</property>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<property name="spacing">6</property>
|
2017-05-23 13:04:52 -03:00
|
|
|
<child>
|
2021-11-29 10:37:01 -03:00
|
|
|
<object class="GtkBox">
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<property name="margin_top">24</property>
|
|
|
|
<property name="spacing">6</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="xalign">0</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="label" translatable="yes">Routes</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<attributes>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<attribute name="weight" value="bold"/>
|
2021-11-29 10:37:01 -03:00
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<object class="GtkLabel" id="auto_routes_label">
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="xalign">1</property>
|
|
|
|
<property name="label" translatable="yes">Automatic</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<object class="GtkSwitch" id="auto_routes_switch">
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Automatic Routes</property>
|
|
|
|
</accessibility>
|
2021-11-29 10:37:01 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="route_config_box">
|
|
|
|
<property name="orientation">vertical</property>
|
2021-11-29 10:37:01 -03:00
|
|
|
<child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="orientation">horizontal</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="routes_address_label">
|
|
|
|
<property name="label" translatable="yes">Address</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label" />
|
|
|
|
</style>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="0.8"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="routes_netmask_label">
|
|
|
|
<property name="label" translatable="yes">Netmask</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label" />
|
|
|
|
</style>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="0.8"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="routes_gateway_label">
|
|
|
|
<property name="label" translatable="yes">Gateway</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label" />
|
|
|
|
</style>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="0.8"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="routes_metric_label">
|
|
|
|
<property name="label" translatable="yes" comments="Translators: Please see https://en.wikipedia.org/wiki/Metrics_(networking)">Metric</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label" />
|
|
|
|
</style>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="0.8"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
2021-11-29 10:37:01 -03:00
|
|
|
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<!-- This invisible box is used to add some width in the
|
|
|
|
end of the header row, assuming the space used by the
|
|
|
|
delete button in the rows -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="routes_stub_box">
|
|
|
|
</object>
|
|
|
|
</child>
|
2021-11-29 10:37:01 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
2017-05-23 13:04:52 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
<child>
|
|
|
|
<object class="GtkCheckButton" id="never_default_check">
|
|
|
|
<property name="label" translatable="yes">Use this connection _only for resources on its network</property>
|
|
|
|
<property name="use_underline">True</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
2021-11-29 10:37:01 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
2012-12-09 19:38:32 -05:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2019-11-06 17:16:54 +13:00
|
|
|
</template>
|
2023-10-18 22:20:46 +02:00
|
|
|
<object class="GtkSizeGroup" id="routes_address_sizegroup">
|
|
|
|
<property name="mode">horizontal</property>
|
|
|
|
<widgets>
|
|
|
|
<widget name="routes_address_label" />
|
|
|
|
</widgets>
|
|
|
|
</object>
|
|
|
|
<object class="GtkSizeGroup" id="routes_netmask_sizegroup">
|
|
|
|
<property name="mode">horizontal</property>
|
|
|
|
<widgets>
|
|
|
|
<widget name="routes_netmask_label"/>
|
|
|
|
</widgets>
|
|
|
|
</object>
|
|
|
|
<object class="GtkSizeGroup" id="routes_gateway_sizegroup">
|
|
|
|
<property name="mode">horizontal</property>
|
|
|
|
<widgets>
|
|
|
|
<widget name="routes_gateway_label" />
|
|
|
|
</widgets>
|
|
|
|
</object>
|
2017-05-23 13:04:52 -03:00
|
|
|
<object class="GtkSizeGroup" id="routes_metric_sizegroup">
|
|
|
|
<property name="mode">horizontal</property>
|
|
|
|
<widgets>
|
|
|
|
<widget name="routes_metric_label" />
|
|
|
|
</widgets>
|
|
|
|
</object>
|
|
|
|
<object class="GtkSizeGroup" id="routes_sizegroup">
|
|
|
|
<property name="mode">horizontal</property>
|
|
|
|
<widgets>
|
|
|
|
<widget name="routes_stub_box" />
|
|
|
|
</widgets>
|
|
|
|
</object>
|
2017-05-23 15:02:45 -03:00
|
|
|
<object class="GtkSizeGroup" id="address_sizegroup">
|
|
|
|
<property name="mode">horizontal</property>
|
|
|
|
<widgets>
|
|
|
|
<widget name="address_stub_box" />
|
|
|
|
</widgets>
|
|
|
|
</object>
|
2012-12-09 19:38:32 -05:00
|
|
|
</interface>
|
network: fix sensitivity of DNS and route configuration widgets
When the IP method is "disabled" or "shared" then everything else is
supposed to be insensitive. This currently fails if you toggle between
the two, because it's implemented using property bindings that are just
not smart enough to handle this task. Handle sensitivity only in
method_changed() to avoid this.
Additionally, not all of the widgets are being consistently
disabled/enabled when appropriate. E.g. when the method is "local" then
only the DNS entry, route entries, and default route checkboxes become
insensitive, leaving the other widgets, including notably the Automatic
switches, sensitive. They should all become insensitive, as when the
method is "disabled" or "shared." Fix this by organizing all the related
widgets into boxes and setting the sensitivity of the entire box. (Note
the strategy followed here does not exactly match nm-connection-editor,
which always allows editing addresses. We only allow that in Manual
mode. I'm not sure if this is advisable or not, so won't touch that.)
Finally, the Automatic DNS and Automatic Routes toggles should only be
sensitive when the method is "Automatic".
2023-10-13 14:03:43 -05:00
|
|
|
|