summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-21 21:08:11 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-21 21:08:11 +0200
commitc2ec43487c376f5e44db0b7513675c8788869f95 (patch)
tree629e12e3ab73b3b937aa3a1e328db3babc2a65d0 /plugins/gtkui
parent4e18dd7e3f290cfbc6bae09e336a41ce1441a80e (diff)
fixed tabstrip drawing during tab dragndrop
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/ddbtabstrip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c
index 28b53946..e5cba53a 100644
--- a/plugins/gtkui/ddbtabstrip.c
+++ b/plugins/gtkui/ddbtabstrip.c
@@ -461,7 +461,7 @@ tabstrip_render (DdbTabStrip *ts) {
}
if (need_draw_moving) {
x = -ts->hscrollpos + tabs_left_margin;
- for (idx = 0; idx < 10; idx++) {
+ for (idx = 0; idx < cnt; idx++) {
w = widths[idx];
if (idx == ts->dragging) {
#if 0
@@ -475,7 +475,7 @@ tabstrip_render (DdbTabStrip *ts) {
break;
}
if (w > 0) {
-// gtk_paint_box (widget->style, backbuf, GTK_STATE_SELECTED, GTK_SHADOW_OUT, NULL, widget, "button", x, 0, w, h);
+ //gtk_paint_box (widget->style, backbuf, GTK_STATE_SELECTED, GTK_SHADOW_OUT, NULL, widget, "button", x, 0, w, h);
ddb_tabstrip_draw_tab (widget, backbuf, 1, x, y, w, h);
char tab_title[100];
plt_get_title_wrapper (idx, tab_title, sizeof (tab_title));