diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-09-14 20:19:58 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-09-14 20:19:58 +0200 |
commit | dd29827bd606e831a6d9cf30dbcbca962654e69c (patch) | |
tree | cfb54bdf177ef4f00b5fdd46b37143bd929f8858 | |
parent | 43acff0917d10a9ec21866ea299fd72afa6b43cb (diff) |
fixed minor tab drawing issue
-rw-r--r-- | plugins/gtkui/ddbtabstrip.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c index 7830cb8a..315d947e 100644 --- a/plugins/gtkui/ddbtabstrip.c +++ b/plugins/gtkui/ddbtabstrip.c @@ -735,6 +735,9 @@ tabstrip_scroll_to_tab (DdbTabStrip *ts, int tab) { int boundary = widget->allocation.width - arrow_widget_width*2 + ts->hscrollpos; for (int idx = 0; idx < cnt; idx++) { int tab_w = ddb_tabstrip_get_tab_width (ts, idx); + if (idx == cnt-1) { + tab_w += 3; + } if (idx == tab) { if (w < ts->hscrollpos) { ts->hscrollpos = w; @@ -780,8 +783,8 @@ tabstrip_scroll_left (DdbTabStrip *ts) { tab--; deadbeef->plt_set_curr (tab); deadbeef->conf_set_int ("playlist.current", tab); - tabstrip_scroll_to_tab (ts, tab); } + tabstrip_scroll_to_tab (ts, tab); } static void @@ -814,8 +817,8 @@ tabstrip_scroll_right (DdbTabStrip *ts) { tab++; deadbeef->plt_set_curr (tab); deadbeef->conf_set_int ("playlist.current", tab); - tabstrip_scroll_to_tab (ts, tab); } + tabstrip_scroll_to_tab (ts, tab); } gboolean |