Skip to content

Commit cd19dd5

Browse files
committed
Fix view toolbar button to properly show menu when clicked
1 parent f477b8d commit cd19dd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pippy_app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,14 @@ def initialize_display(self):
243243

244244
view_btn = ToolbarButton()
245245
view_toolbar = DevelopViewToolbar(self)
246-
view_btn.props.page = view_toolbar
246+
view_btn.set_page(view_toolbar)
247247
view_btn.props.icon_name = 'toolbar-view'
248248
view_btn.props.label = _('View')
249249
view_toolbar.connect('font-size-changed',
250250
self._font_size_changed_cb)
251251
self.get_toolbar_box().toolbar.insert(view_btn, -1)
252252
self.view_toolbar = view_toolbar
253+
view_btn.show()
253254
view_toolbar.show()
254255

255256
actions_toolbar = self.get_toolbar_box().toolbar

0 commit comments

Comments
 (0)