Reduce label width in assistants (Gtk 3.10)

This commit is contained in:
Nick Hall 2014-05-21 21:02:09 +01:00
parent b2426f9c0e
commit b45bda2e57
2 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,8 @@ class ExportAssistant(Gtk.Assistant, ManagedWindow) :
label = Gtk.Label(label=self.get_intro_text()) label = Gtk.Label(label=self.get_intro_text())
label.set_line_wrap(True) label.set_line_wrap(True)
label.set_use_markup(True) label.set_use_markup(True)
if (Gtk.get_major_version(), Gtk.get_minor_version()) >= (3, 10):
label.set_max_width_chars(60)
image = Gtk.Image() image = Gtk.Image()
image.set_from_file(SPLASH) image.set_from_file(SPLASH)

View File

@ -211,6 +211,8 @@ class IntroductionPage(Gtk.VBox):
label = Gtk.Label(label=self.__get_intro_text()) label = Gtk.Label(label=self.__get_intro_text())
label.set_line_wrap(True) label.set_line_wrap(True)
label.set_use_markup(True) label.set_use_markup(True)
if (Gtk.get_major_version(), Gtk.get_minor_version()) >= (3, 10):
label.set_max_width_chars(60)
self.pack_start(image, False, False, 0) self.pack_start(image, False, False, 0)
self.pack_start(label, False, False, 5) self.pack_start(label, False, False, 5)