[recipes] Slightly review the chef tiles
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Slightly review the chef tiles
- Date: Wed, 4 Jan 2017 18:38:47 +0000 (UTC)
commit 8fe0fdec2765c5f8703d0af385596bcdf7be11fa
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 4 13:37:46 2017 -0500
Slightly review the chef tiles
Arrange the chefs in a 3 column layout as well, like the rest
of the content. With this layout, a horizontal arrangement
works better. Following suggestions by Jakub.
src/gr-chef-tile.c | 2 +-
src/gr-chef-tile.ui | 3 ++-
src/gr-recipes-page.ui | 6 ++++--
3 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-chef-tile.c b/src/gr-chef-tile.c
index 5160608..387c265 100644
--- a/src/gr-chef-tile.c
+++ b/src/gr-chef-tile.c
@@ -155,7 +155,7 @@ chef_tile_set_chef (GrChefTile *tile,
elem = gr_chef_get_id (tile->chef);
gtk_style_context_add_class (gtk_widget_get_style_context (tile->image), elem);
- name = gr_chef_get_name (chef);
+ name = gr_chef_get_fullname (chef);
gtk_label_set_label (GTK_LABEL (tile->label), name);
}
}
diff --git a/src/gr-chef-tile.ui b/src/gr-chef-tile.ui
index 2c29282..4bdbd2d 100644
--- a/src/gr-chef-tile.ui
+++ b/src/gr-chef-tile.ui
@@ -3,7 +3,7 @@
<!-- interface-requires gtk+ 3.10 -->
<template class="GrChefTile" parent="GtkBox">
<property name="visible">True</property>
- <property name="orientation">vertical</property>
+ <property name="orientation">horizontal</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage" id="image">
@@ -20,6 +20,7 @@
<child>
<object class="GtkLabel" id="label">
<property name="visible">1</property>
+ <property name="valign">center</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
diff --git a/src/gr-recipes-page.ui b/src/gr-recipes-page.ui
index 3605fc6..920dcf7 100644
--- a/src/gr-recipes-page.ui
+++ b/src/gr-recipes-page.ui
@@ -188,10 +188,12 @@
<property name="selection-mode">none</property>
<property name="row-spacing">20</property>
<property name="column-spacing">20</property>
- <property name="halign">start</property>
+ <property name="halign">fill</property>
<property name="valign">start</property>
<property name="margin-bottom">20</property>
- <property name="min-children-per-line">4</property>
+ <property name="homogeneous">1</property>
+ <property name="min-children-per-line">3</property>
+ <property name="max-children-per-line">3</property>
<signal name="child-activated" handler="show_chef_list"/>
<accessibility>
<relation target="chefs_label" type="labelled-by"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]