[gnome-calendar/gbsneto/event-editor: 14/16] edit-dialog: Simplify notes widgetry
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/event-editor: 14/16] edit-dialog: Simplify notes widgetry
- Date: Mon, 25 Nov 2019 14:37:24 +0000 (UTC)
commit 91074754984f096ca2da68369710d08279caaa15
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Nov 14 15:33:03 2019 -0300
edit-dialog: Simplify notes widgetry
Remove an intemediary GtkBox that is now not necessary anymore.
src/gui/gcal-edit-dialog.ui | 63 +++++++++++++++++++--------------------------
1 file changed, 26 insertions(+), 37 deletions(-)
---
diff --git a/src/gui/gcal-edit-dialog.ui b/src/gui/gcal-edit-dialog.ui
index 9cd74e25..d952acde 100644
--- a/src/gui/gcal-edit-dialog.ui
+++ b/src/gui/gcal-edit-dialog.ui
@@ -511,50 +511,39 @@
<!-- Notes -->
<child>
- <object class="GtkBox">
+ <object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="valign">center</property>
- <property name="spacing">6</property>
<property name="hexpand">True</property>
- <property name="orientation">vertical</property>
-
- <child>
- <object class="GtkLabel">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="hexpand">True</property>
- <property name="margin-top">12</property>
- <property name="xalign">0.0</property>
- <property name="label" translatable="yes">Notes</property>
- <attributes>
- <attribute name="weight" value="bold" />
- </attributes>
- </object>
- </child>
+ <property name="margin-top">12</property>
+ <property name="xalign">0.0</property>
+ <property name="label" translatable="yes">Notes</property>
+ <attributes>
+ <attribute name="weight" value="bold" />
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkScrolledWindow">
+ <property name="min_content_height">120</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="vexpand">True</property>
+ <property name="shadow_type">in</property>
<child>
- <object class="GtkScrolledWindow">
- <property name="min_content_height">120</property>
+ <object class="GtkTextView" id="notes_text">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="vexpand">True</property>
- <property name="shadow_type">in</property>
- <child>
- <object class="GtkTextView" id="notes_text">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hexpand">True</property>
- <property name="top_margin">6</property>
- <property name="bottom_margin">6</property>
- <property name="left_margin">6</property>
- <property name="right_margin">6</property>
- <property name="sensitive">True</property>
- <property name="editable" bind-source="GcalEditDialog" bind-property="writable"
bind-flags="default" />
- <property name="cursor_visible" bind-source="GcalEditDialog"
bind-property="writable" bind-flags="default" />
- <property name="wrap_mode">GTK_WRAP_WORD_CHAR</property>
- </object>
- </child>
+ <property name="hexpand">True</property>
+ <property name="top_margin">6</property>
+ <property name="bottom_margin">6</property>
+ <property name="left_margin">6</property>
+ <property name="right_margin">6</property>
+ <property name="sensitive">True</property>
+ <property name="editable" bind-source="GcalEditDialog" bind-property="writable"
bind-flags="default" />
+ <property name="cursor_visible" bind-source="GcalEditDialog"
bind-property="writable" bind-flags="default" />
+ <property name="wrap_mode">GTK_WRAP_WORD_CHAR</property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]