When adding an account, the old proccess was: use the (removed) toolbar to open the New Account dialog, select a provider in that dialog, add the account and see the newly created account in the panel itself. That approach had issues, e.g. the user would have to close the dialog if she mistakenly selected a provider. After moving the provider list to the panel itself, it doesn't make sense anymore to have another provider list inside the dialog. Fix this by moving the new account view to the accounts dialog. https://bugzilla.gnome.org/show_bug.cgi?id=774222
123 lines
5.1 KiB
XML
123 lines
5.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.0 -->
|
|
<template class="CcGoaPanel" parent="CcPanel">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="hscrollbar_policy">never</property>
|
|
<property name="min_content_height">350</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="spacing">18</property>
|
|
<property name="border-width">8</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="margin">6</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="label" translatable="yes">Connect to your data in the cloud</property>
|
|
<attributes>
|
|
<attribute name="scale" value="1.66" />
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkFrame" id="accounts_frame">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child>
|
|
<object class="GtkListBox" id="accounts_listbox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="selection_mode">none</property>
|
|
<signal name="row-activated" handler="on_listbox_row_activated" object="CcGoaPanel" swapped="yes" />
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin-top">24</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">Add an account</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold" />
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkFrame">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child>
|
|
<object class="GtkListBox" id="providers_listbox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="selection_mode">none</property>
|
|
<signal name="row-activated" handler="on_provider_row_activated" object="CcGoaPanel" swapped="yes" />
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<object class="GtkDialog" id="edit_account_dialog">
|
|
<property name="can_focus">False</property>
|
|
<property name="type_hint">dialog</property>
|
|
<property name="use_header_bar">1</property>
|
|
<property name="resizable">False</property>
|
|
<property name="modal">True</property>
|
|
<signal name="delete-event" handler="on_edit_account_dialog_delete_event" object="CcGoaPanel" swapped="yes" />
|
|
<child type="titlebar">
|
|
<object class="GtkHeaderBar" id="edit_account_headerbar">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="show_close_button">True</property>
|
|
</object>
|
|
</child>
|
|
<child internal-child="vbox">
|
|
<object class="GtkBox">
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkStack" id="stack">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="transition_type">crossfade</property>
|
|
<child>
|
|
<object class="GtkBox" id="new_account_vbox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
<packing>
|
|
<property name="name">new-account</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="accounts_vbox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin">18</property>
|
|
</object>
|
|
<packing>
|
|
<property name="name">editor</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|