Commit af7c16f5 authored by Julian Sparber's avatar Julian Sparber

contact-editor: make avatar selector scrollable

This makes the avatar selector smaller and scrollable
parent 4024b6de
......@@ -14,12 +14,55 @@
<property name="orientation">vertical</property>
<property name="spacing">10</property>
<child>
<object class="GtkFlowBox" id="personas_thumbnail_grid">
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="column_spacing">5</property>
<property name="row_spacing">5</property>
<property name="selection_mode">none</property>
<property name="can_focus">True</property>
<property name="min_content_height">200</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkFlowBox" id="personas_thumbnail_grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="column_spacing">5</property>
<property name="row_spacing">5</property>
<property name="min_children_per_line">1</property>
<property name="max_children_per_line">8</property>
<property name="selection_mode">none</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkFlowBox" id="stock_thumbnail_grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="column_spacing">5</property>
<property name="row_spacing">5</property>
<property name="min_children_per_line">1</property>
<property name="max_children_per_line">8</property>
<property name="selection_mode">none</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
......@@ -27,22 +70,6 @@
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkFlowBox" id="stock_thumbnail_grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="column_spacing">5</property>
<property name="row_spacing">5</property>
<property name="min_children_per_line">5</property>
<property name="max_children_per_line">8</property>
<property name="selection_mode">none</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
......@@ -53,8 +80,8 @@
<object class="GtkButton" id="cheese_button">
<property name="label" translatable="yes">Take a Picture…</property>
<property name="can_focus">True</property>
<property name="no_show_all">True</property>
<property name="receives_default">True</property>
<property name="no_show_all">True</property>
<signal name="clicked" handler="on_cheese_clicked" swapped="no"/>
</object>
<packing>
......@@ -81,7 +108,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
<property name="position">1</property>
</packing>
</child>
</object>
......
......@@ -127,7 +127,7 @@ public class Contacts.AvatarSelector : Popover {
});
var child = new FlowBoxChild ();
child.add (button);
child.set_halign (Align.START);
child.set_halign (Align.CENTER);
return child;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment