Fix composer detach button position & visibility on custom setups.

Fixes Bug 793710.

* src/client/composer/composer-headerbar.vala (ComposerHeaderbar): Ensure
  we actually get notified when the user changes their decoration prefs
  and update detach button location correctly.

* ui/composer-headerbar.ui: Make start detach button's image visible by
  default.
This commit is contained in:
Michael James Gratton 2018-04-12 11:36:18 +10:00
parent 65f6c1127f
commit 67e8a8ab93
2 changed files with 5 additions and 2 deletions

View file

@ -46,8 +46,10 @@ public class ComposerHeaderbar : Gtk.HeaderBar {
bind_property("show-pending-attachments", conversation_attach_buttons, "visible",
BindingFlags.SYNC_CREATE);
notify["decoration-layout"].connect(set_detach_button_side);
realize.connect(set_detach_button_side);
set_detach_button_side();
Gtk.Settings.get_default().notify["gtk-decoration-layout"].connect(
() => { set_detach_button_side(); }
);
}
public void set_recipients(string label, string tooltip) {

View file

@ -21,6 +21,7 @@
<property name="always_show_image">True</property>
<child>
<object class="GtkImage" id="detach_start_image">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixel_size">16</property>
<property name="icon_name">detach-symbolic</property>