From efaa713f68a431c8878fbe86651ad3ae93a0b915 Mon Sep 17 00:00:00 2001 From: Josip Date: Sun, 8 Nov 2015 00:31:22 +0100 Subject: [PATCH] 8988: Name of user defined filter is not shown --- gramps/gui/filters/sidebar/_sidebarfilter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gui/filters/sidebar/_sidebarfilter.py b/gramps/gui/filters/sidebar/_sidebarfilter.py index a6d3b0ad0..6576425a3 100644 --- a/gramps/gui/filters/sidebar/_sidebarfilter.py +++ b/gramps/gui/filters/sidebar/_sidebarfilter.py @@ -34,7 +34,10 @@ _RETURN = Gdk.keyval_from_name("Return") _KP_ENTER = Gdk.keyval_from_name("KP_Enter") class SidebarFilter(DbGUIElement): - _FILTER_WIDTH = 20 + if Gtk.get_minor_version() > 17: + _FILTER_WIDTH = -1 + else: + _FILTER_WIDTH = 20 _FILTER_ELLIPSIZE = Pango.EllipsizeMode.END def __init__(self, dbstate, uistate, namespace):