Composer.Widget: Rename some structural widgets to make more sense
This commit is contained in:
parent
63c3024f12
commit
f281b5ca2e
2 changed files with 8 additions and 8 deletions
|
|
@ -362,9 +362,9 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
|
|||
[GtkChild]
|
||||
private Gtk.Widget visible_on_attachment_drag_over_child;
|
||||
[GtkChild]
|
||||
private Gtk.Widget recipients;
|
||||
private Gtk.Widget email_headers;
|
||||
[GtkChild]
|
||||
private Gtk.Box header_area;
|
||||
private Gtk.Box header_container;
|
||||
|
||||
private GLib.SimpleActionGroup actions = new GLib.SimpleActionGroup();
|
||||
|
||||
|
|
@ -1382,17 +1382,17 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
|
|||
switch (new_mode) {
|
||||
case PresentationMode.DETACHED:
|
||||
case PresentationMode.PANED:
|
||||
this.recipients.set_visible(true);
|
||||
this.email_headers.set_visible(true);
|
||||
this.subject_row.visible = true;
|
||||
break;
|
||||
|
||||
case PresentationMode.INLINE:
|
||||
this.recipients.set_visible(true);
|
||||
this.email_headers.set_visible(true);
|
||||
this.subject_row.visible = false;
|
||||
break;
|
||||
|
||||
case PresentationMode.INLINE_COMPACT:
|
||||
this.recipients.set_visible(false);
|
||||
this.email_headers.set_visible(false);
|
||||
this.subject_row.visible = false;
|
||||
set_compact_header_recipients();
|
||||
break;
|
||||
|
|
@ -1408,7 +1408,7 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
|
|||
|
||||
internal void embed_header() {
|
||||
if (this.header.parent == null) {
|
||||
this.header_area.add(this.header);
|
||||
this.header_container.add(this.header);
|
||||
this.header.hexpand = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="header_area">
|
||||
<object class="GtkBox" id="header_container">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">6</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="recipients">
|
||||
<object class="GtkBox" id="email_headers">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="margin_start">6</property>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue