From: Olivier D. <bu...@fr...> - 2001-09-25 14:16:51
|
Hi, I just found a little bug in the e_scrollbar stuff: the scrollbar don't stop scrolling up when scrolling up using the arrow keys. Here is a little patch that fixes it (Let's hope I generated it correctly :-): --- scrollbar.c Thu Sep 6 15:20:35 2001 +++ scrollbar_no_page_up_bug.c Tue Sep 25 16:06:11 2001 @@ -353,6 +353,7 @@ { if (sb->val == val) return; if (val > sb->max - sb->range) val = sb->max - sb->range; + if (val < 0 ) val = 0; sb->val = val; e_scrollbar_recalc(sb); if (sb->bar) ebits_move(sb->bar, sb->bar_pos.x, sb->bar_pos.y); I also have a "patch" (one line is not much of a patch...) to start apps in a view's directory when starting an app from that view's menu: --- view.c Mon Sep 24 23:21:25 2001 +++ view_exec_in_dir.c Tue Sep 25 16:03:20 2001 @@ -343,7 +343,10 @@ static E_Menu *menu = NULL; menu = buildmenu->menu; if (menu) - e_menu_show_at_mouse(menu, ev->rx, ev->ry, ev->time); + { + chdir(v->dir); + e_menu_show_at_mouse(menu, ev->rx, ev->ry, ev->time); + } } } } hope this helps. cheers, Olivier Derpierre -- Now may you code in the power of the Source; may the Kernel, the Libraries and the Utilities be with you, throughout all Distributions, until the end of the Epoch. Amen. |