def fix_dialog(self, dialog, text):
if text: dialog.set_markup(text)
dialog.set_modal(True)
headerbar = dialog.get_header_bar()
if headerbar:
# This is a temporary fix for the duplicate buttons bug
# in 'Gtk.AboutDialog' when 'use_header_bar' property is set.
if type(dialog) == Gtk.AboutDialog:
for i in headerbar:
if type(i) != Gtk.StackSwitcher: i.destroy()
box = dialog.get_content_area()
box.set_border_width(10)
评论列表
文章目录