From ba89c29c0bf7e0914b2212141732369e20b50cb3 Mon Sep 17 00:00:00 2001 From: Josip Date: Sun, 8 Nov 2015 00:43:48 +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 0a3159711..4aa472fe6 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):