[libdazzle] suggestion: align icon with baseline
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] suggestion: align icon with baseline
- Date: Mon, 30 Sep 2019 01:13:06 +0000 (UTC)
commit 4fa4a08f6a74b0068ceb60a122a6ad927c097013
Author: Christian Hergert <chergert redhat com>
Date: Sun Sep 29 18:11:22 2019 -0700
suggestion: align icon with baseline
This allows the icon to stay aligned to the first text row when using
compact-mode.
src/suggestions/dzl-suggestion-row.ui | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/suggestions/dzl-suggestion-row.ui b/src/suggestions/dzl-suggestion-row.ui
index f976adb..5d17389 100644
--- a/src/suggestions/dzl-suggestion-row.ui
+++ b/src/suggestions/dzl-suggestion-row.ui
@@ -3,22 +3,27 @@
<template class="DzlSuggestionRow" parent="DzlListBoxRow">
<child>
<object class="GtkBox">
+ <property name="baseline-position">top</property>
<property name="orientation">horizontal</property>
+ <property name="valign">baseline</property>
<property name="visible">true</property>
<child>
<object class="GtkImage" id="image">
<property name="pixel-size">16</property>
<property name="hexpand">false</property>
+ <property name="valign">baseline</property>
<property name="visible">true</property>
</object>
</child>
<child>
<object class="GtkBox" id="box">
+ <property name="baseline-position">bottom</property>
<property name="orientation">horizontal</property>
<property name="visible">true</property>
<child>
<object class="GtkLabel" id="title">
<property name="hexpand">false</property>
+ <property name="valign">baseline</property>
<property name="visible">true</property>
<property name="xalign">0.0</property>
<property name="use-markup">true</property>
@@ -35,6 +40,7 @@
</child>
<child>
<object class="GtkLabel" id="separator">
+ <property name="valign">baseline</property>
<property name="hexpand">false</property>
<property name="label">—</property>
<property name="visible">true</property>
@@ -51,6 +57,7 @@
</child>
<child>
<object class="GtkLabel" id="subtitle">
+ <property name="valign">baseline</property>
<property name="hexpand">true</property>
<property name="visible">true</property>
<property name="xalign">0.0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]