add tooltip to headerbar

ui
Manuel Genovés 2020-03-11 21:20:08 +01:00
parent 4a85f21d35
commit c9b4bdd110
2 changed files with 2 additions and 1 deletions

View File

@ -410,7 +410,6 @@
<property name="height_request">1</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="visible_window">False</property>
<child>
<placeholder/>
</child>

View File

@ -634,6 +634,8 @@ class MainWindow(StyledWindow):
self.headerbar.hb.props.subtitle = subtitle
self.dm_headerbar.hb.props.subtitle = subtitle
self.fs_headerbar.hb.props.subtitle = subtitle
self.headerbar.hb.set_tooltip_text(subtitle)
self.fs_headerbar.hb.set_tooltip_text(subtitle)
self.set_title(title)
def set_filename(self, filename=None):