Use a GtkButton instead of a GtkLabel to incite the user to configure a new account, and insensitize the GtkBox on the left. Fixes: https://bugzilla.gnome.org/672421
221 lines
10 KiB
XML
221 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.0 -->
|
|
<object class="GtkWindow" id="goa-main-window">
|
|
<property name="can_focus">False</property>
|
|
<child>
|
|
<object class="GtkBox" id="goa-top-widget">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="spacing">6</property>
|
|
<property name="border-width">12</property>
|
|
<property name="orientation">horizontal</property>
|
|
<child>
|
|
<object class="GtkBox" id="accounts-tree-box">
|
|
<property name="visible">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">0</property>
|
|
<child>
|
|
<object class="GtkOverlay" id="accounts-tree-overlay">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="accounts-tree-scrolledwindow">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="hscrollbar_policy">never</property>
|
|
<property name="shadow_type">in</property>
|
|
<property name="min_content_height">250</property>
|
|
<child>
|
|
<object class="GtkTreeView" id="accounts-tree-treeview">
|
|
<property name="width_request">200</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="headers_visible">False</property>
|
|
<property name="show_expanders">False</property>
|
|
<property name="level_indentation">12</property>
|
|
<child internal-child="selection">
|
|
<object class="GtkTreeSelection" id="treeview-selection">
|
|
<property name="mode">browse</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child type="overlay">
|
|
<object class="GtkLabel" id="accounts-tree-label">
|
|
<property name="can_focus">False</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<property name="no-show-all">True</property>
|
|
<property name="justify">center</property>
|
|
<property name="label" translatable="yes">No online accounts configured</property>
|
|
<property name="max-width-chars">18</property>
|
|
<property name="wrap">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToolbar" id="accounts-tree-toolbar">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="toolbar_style">icons</property>
|
|
<property name="icon_size">1</property>
|
|
<style>
|
|
<class name="inline-toolbar"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkToolButton" id="accounts-tree-toolbutton-add">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="use_action_appearance">False</property>
|
|
<property name="icon_name">list-add-symbolic</property>
|
|
<property name="label" translatable="yes">Add Account</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="homogeneous">True</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToolButton" id="accounts-tree-toolbutton-remove">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="use_action_appearance">False</property>
|
|
<property name="icon_name">list-remove-symbolic</property>
|
|
<property name="label" translatable="yes">Remove Account</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="homogeneous">True</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">2</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkNotebook" id="accounts-notebook">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="show_tabs">False</property>
|
|
<property name="show_border">False</property>
|
|
<child>
|
|
<object class="GtkAlignment" id="alignment2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="bottom_padding">18</property>
|
|
<child>
|
|
<object class="GtkBox" id="box1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="valign">center</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">6</property>
|
|
<child>
|
|
<object class="GtkButton" id="accounts-button-add">
|
|
<property name="label" translatable="yes">Add an online account</property>
|
|
<property name="use_action_appearance">False</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="halign">center</property>
|
|
<property name="use_action_appearance">False</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label3">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="label" translatable="yes">Adding an account allows your applications to access it for documents, mail, contacts, calendar, chat and more.</property>
|
|
<property name="justify">center</property>
|
|
<property name="wrap">True</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="tab_fill">False</property>
|
|
</packing>
|
|
</child>
|
|
<child type="tab">
|
|
<object class="GtkLabel" id="label1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="label">page 1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="tab_fill">False</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="accounts-vbox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child type="tab">
|
|
<object class="GtkLabel" id="label2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="label">page 2</property>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
<property name="tab_fill">False</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
<child type="tab">
|
|
<placeholder/>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|