8988: Name of user defined filter is not shown

This commit is contained in:
Josip 2015-11-08 00:31:22 +01:00
parent 888bdc77b5
commit efaa713f68

View File

@ -34,7 +34,10 @@ _RETURN = Gdk.keyval_from_name("Return")
_KP_ENTER = Gdk.keyval_from_name("KP_Enter") _KP_ENTER = Gdk.keyval_from_name("KP_Enter")
class SidebarFilter(DbGUIElement): class SidebarFilter(DbGUIElement):
_FILTER_WIDTH = 20 if Gtk.get_minor_version() > 17:
_FILTER_WIDTH = -1
else:
_FILTER_WIDTH = 20
_FILTER_ELLIPSIZE = Pango.EllipsizeMode.END _FILTER_ELLIPSIZE = Pango.EllipsizeMode.END
def __init__(self, dbstate, uistate, namespace): def __init__(self, dbstate, uistate, namespace):