From: Andreas Monzner Date: Mon, 12 Dec 2005 21:40:47 +0000 (+0000) Subject: change listbox scrollbar default to showNever, X-Git-Tag: 2.6.0~4728 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/e9876c2e72cf9e854c917ae1cc149e1501e4d620?ds=sidebyside change listbox scrollbar default to showNever, add thousands of scrollbarMode="showOnDemand" to skin --- diff --git a/data/skin.xml b/data/skin.xml index 3c9f55db..dd969cd4 100644 --- a/data/skin.xml +++ b/data/skin.xml @@ -39,7 +39,7 @@ - + @@ -47,10 +47,10 @@ - + - - + + @@ -66,12 +66,12 @@ - + - + @@ -85,22 +85,22 @@ - + - + - + - + @@ -110,7 +110,7 @@ - + @@ -138,7 +138,7 @@ - + @@ -204,8 +204,6 @@ --> - - @@ -226,26 +224,25 @@ - + - + + - - @@ -254,7 +251,7 @@ - + @@ -270,7 +267,7 @@ - + diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index 875ae625..1c797cfa 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -8,8 +8,6 @@ eListbox::eListbox(eWidget *parent) { setContent(new eListboxStringContent()); - setScrollbarMode(showOnDemand); // Default show scrollbar on demand - ePtr ptr; eActionMap::getInstance(ptr); @@ -151,6 +149,8 @@ void eListbox::moveSelectionTo(int index) void eListbox::updateScrollBar() { + if (!m_scrollbar) + return; int entries = m_content->size(); if ( m_content_changed ) {