Reduce label width in assistants (Gtk 3.10)
This commit is contained in:
parent
978c5055d8
commit
751b3d5a34
@ -160,6 +160,8 @@ class ExportAssistant(Gtk.Assistant, ManagedWindow) :
|
||||
label = Gtk.Label(label=self.get_intro_text())
|
||||
label.set_line_wrap(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.set_from_file(SPLASH)
|
||||
|
@ -211,6 +211,8 @@ class IntroductionPage(Gtk.VBox):
|
||||
label = Gtk.Label(label=self.__get_intro_text())
|
||||
label.set_line_wrap(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(label, False, False, 5)
|
||||
|
Loading…
Reference in New Issue
Block a user