diff options
author | 2009-10-18 22:29:41 +0200 | |
---|---|---|
committer | 2009-10-18 22:29:41 +0200 | |
commit | 7c1ea7259b1f9e78fd5670819d04e52689f7d5ba (patch) | |
tree | 793b799ab1083af0536542d476536151cfcad63e /gtkplaylist.c | |
parent | 396fd8bb8130e8d1c882bcc53a604ea6e7b026d6 (diff) |
changed minimum column width to 16px
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r-- | gtkplaylist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c index 5b890551..5afaf959 100644 --- a/gtkplaylist.c +++ b/gtkplaylist.c @@ -80,6 +80,8 @@ float colo_white_blue[COLO_COUNT][3] = { { 0x09/255.f, 0x22/255.f, 0x3a/255.f }, // dragdrop marker }; +#define MIN_COLUMN_WIDTH 16 + // current color scheme float colo_current[COLO_COUNT][3]; @@ -1351,7 +1353,7 @@ on_header_motion_notify_event (GtkWidget *widget, x += c->width; } - int newx = event->x > x + 40 ? event->x : x + 40; + int newx = event->x > x + MIN_COLUMN_WIDTH ? event->x : x + MIN_COLUMN_WIDTH; c->width = newx - x; gtkpl_setup_hscrollbar (ps); gtkpl_header_draw (ps); |