From b45bda2e573c366d05f1c6ba3e70b5bbb5a0cd74 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 21 May 2014 21:02:09 +0100 Subject: [PATCH] Reduce label width in assistants (Gtk 3.10) --- gramps/gui/plug/export/_exportassistant.py | 2 ++ gramps/plugins/tool/mediamanager.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gramps/gui/plug/export/_exportassistant.py b/gramps/gui/plug/export/_exportassistant.py index e1f89da93..089b21664 100644 --- a/gramps/gui/plug/export/_exportassistant.py +++ b/gramps/gui/plug/export/_exportassistant.py @@ -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) diff --git a/gramps/plugins/tool/mediamanager.py b/gramps/plugins/tool/mediamanager.py index 7b32d001d..4d1e5e2d3 100644 --- a/gramps/plugins/tool/mediamanager.py +++ b/gramps/plugins/tool/mediamanager.py @@ -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)