gnome-control-center/panels/wwan/cc-wwan-network-dialog.ui
Mohammed Sadiq 81a5390c30 wwan: Use button icon-name property to set button image
This simplifies setting button image and improves the way they
are presented as the css will then be handled better this way.
2022-01-06 15:04:28 +00:00

159 lines
7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="CcWwanNetworkDialog" parent="GtkDialog">
<property name="title" translatable="yes">Network</property>
<property name="default-height">480</property>
<property name="default-width">360</property>
<property name="hide-on-close">True</property>
<property name="modal">True</property>
<child>
<object class="GtkBox">
<property name="width-request">340</property>
<property name="height-request">360</property>
<child>
<object class="GtkOverlay">
<property name="hexpand">True</property>
<child type="overlay">
<object class="GtkRevealer" id="notification_revealer">
<property name="halign">center</property>
<property name="valign">start</property>
<property name="child">
<object class="GtkBox">
<property name="spacing">12</property>
<style>
<class name="frame"/>
<class name="app-notification"/>
</style>
<child>
<object class="GtkLabel" id="notification_label">
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="use-markup">True</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="icon-name">window-close-symbolic</property>
<signal name="clicked" handler="cc_wwan_on_notification_closed" swapped="yes"/>
<accessibility>
<property name="label" translatable="yes">Close</property>
</accessibility>
</object>
</child>
</object>
</property>
</object>
</child>
<property name="child">
<object class="GtkBox">
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="margin-top">18</property>
<property name="margin-bottom">18</property>
<property name="orientation">vertical</property>
<!-- Automatic Network Selection Switch -->
<child>
<object class="GtkListBox">
<property name="selection-mode">none</property>
<property name="margin-bottom">18</property>
<style>
<class name="boxed-list"/>
</style>
<child>
<object class="CcListRow" id="automatic_row">
<property name="show-switch">True</property>
<property name="use-underline">True</property>
<property name="title" translatable="yes">_Automatic</property>
<signal name="notify::active" handler="cc_wwan_auto_network_changed_cb" swapped="yes"/>
</object>
</child>
</object>
</child>
<!-- Network Selection List Title and Spinner -->
<child>
<object class="GtkBox" id="network_search_title">
<property name="visible" bind-source="automatic_row" bind-property="active" bind-flags="sync-create|invert-boolean"/>
<property name="margin-bottom">9</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Choose Network</property>
<property name="xalign">0.0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkSpinner" id="loading_spinner"/>
</child>
<child>
<object class="GtkButton" id="refresh_button">
<property name="icon-name">view-refresh-symbolic</property>
<signal name="clicked" handler="cc_wwan_network_dialog_refresh_networks" swapped="yes"/>
<accessibility>
<property name="label" translatable="yes">Refresh Network Providers</property>
</accessibility>
</object>
</child>
</object>
</child>
<!-- Network Selection List -->
<child>
<object class="GtkScrolledWindow">
<property name="hscrollbar-policy">never</property>
<property name="propagate-natural-height">True</property>
<property name="visible" bind-source="operator_list_box" bind-flags="sync-create"/>
<style>
<class name="frame"/>
</style>
<property name="child">
<object class="GtkListBox" id="operator_list_box">
<property name="visible">False</property>
<property name="sensitive">False</property>
<property name="selection-mode">none</property>
<signal name="row-activated" handler="cc_wwan_network_changed_cb" swapped="yes"/>
<style>
<class name="boxed-list"/>
</style>
</object>
</property>
</object>
</child>
</object>
</property>
</object>
</child>
</object>
</child>
<child type="action">
<object class="GtkButton" id="button_cancel">
<property name="use-underline">True</property>
<property name="label" translatable="yes">_Cancel</property>
<signal name="clicked" handler="gtk_widget_hide" swapped="yes"/>
</object>
</child>
<child type="action">
<object class="GtkButton" id="button_apply">
<property name="use-underline">True</property>
<property name="label" translatable="yes">_Set</property>
<signal name="clicked" handler="cc_wwan_network_dialog_apply_clicked_cb" swapped="yes"/>
<style>
<class name="suggested-action "/>
</style>
</object>
</child>
<action-widgets>
<action-widget response="cancel">button_cancel</action-widget>
<action-widget response="apply" default="True">button_apply</action-widget>
</action-widgets>
</template>
</interface>