forked from AuroraMiddleware/gtk
a1635b6188
Add integration of the libcloudproviders DBus API to the GtkPlacesSidebar by showing name and sync status of the cloud providers. The exported menu is rendered as a GtkPopover. The sidebar will be updated if the list of cloudproviders changes e.g. by adding or removing an account. If any cloud provider changes detailed information like sync status only the individual sidebar row gets updated. Co-authored-by: Carlos Soriano <csoriano@gnome.org> Co-authored-by: Daniel Boles <dboles@src.gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=786123
63 lines
2.2 KiB
XML
63 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface domain="gtk40">
|
|
<template class="GtkSidebarRow" parent="GtkListBoxRow">
|
|
<property name="margin-top">1</property>
|
|
<property name="margin-bottom">1</property>
|
|
<style>
|
|
<class name="sidebar-row"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkRevealer" id="revealer">
|
|
<property name="reveal-child">1</property>
|
|
<signal name="notify::child-revealed" handler="on_child_revealed"/>
|
|
<style>
|
|
<class name="sidebar-revealer"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<child>
|
|
<object class="GtkImage" id="start_icon_widget">
|
|
<style>
|
|
<class name="sidebar-icon"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label_widget">
|
|
<property name="hexpand">1</property>
|
|
<property name="xalign">0</property>
|
|
<style>
|
|
<class name="sidebar-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImage" id="end_icon_widget">
|
|
<property name="visible">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="halign">end</property>
|
|
<property name="valign">center</property>
|
|
<style>
|
|
<class name="sidebar-icon"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="eject_button">
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<property name="margin-start">4px</property>
|
|
<property name="icon-name">media-eject-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Unmount</property>
|
|
<style>
|
|
<class name="sidebar-button"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|