Currently, it is not possible to unset a custom avatar, respective it is not possible to set the default one. Let's present the default avatar in the avatar popover as suggested in the mockup: https://wiki.gnome.org/Design/OS/AvatarChooser Fixes: GNOME/gnome-control-center#62
58 lines
2.4 KiB
XML
58 lines
2.4 KiB
XML
<?xml version="1.0"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.8 -->
|
|
<template class="CcAvatarChooser" parent="GtkPopover">
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
|
|
<property name="border-width">10</property>
|
|
<child>
|
|
<object class="GtkFlowBox" id="user_flowbox">
|
|
<property name="visible">True</property>
|
|
<property name="border-width">10</property>
|
|
<property name="selection-mode">none</property>
|
|
<property name="homogeneous">True</property>
|
|
<property name="max-children-per-line">5</property>
|
|
<property name="column-spacing">10</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkFlowBox" id="flowbox">
|
|
<property name="visible">True</property>
|
|
<property name="border-width">10</property>
|
|
<property name="selection-mode">none</property>
|
|
<property name="homogeneous">True</property>
|
|
<property name="max-children-per-line">5</property>
|
|
<property name="column-spacing">10</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="halign">GTK_ALIGN_CENTER</property>
|
|
<property name="border-width">10</property>
|
|
<property name="spacing">10</property>
|
|
<child>
|
|
<object class="GtkButton" id="take_picture_button">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">Take a Picture…</property>
|
|
<signal name="clicked" handler="webcam_icon_selected" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">Select a File…</property>
|
|
<signal name="clicked" handler="cc_avatar_chooser_select_file" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="pack-type">GTK_PACK_END</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|