From 84f725bd544e21dc3e5cd7cbae31128c3086cd11 Mon Sep 17 00:00:00 2001 From: alx Date: Thu, 23 Jul 2015 20:01:22 +0200 Subject: [PATCH] dtfile: fixed file view scrolling with Page Up/Down keys --- cde/programs/dtfile/IconWindow.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/cde/programs/dtfile/IconWindow.c b/cde/programs/dtfile/IconWindow.c index 6bf37ff4..f518eab0 100644 --- a/cde/programs/dtfile/IconWindow.c +++ b/cde/programs/dtfile/IconWindow.c @@ -776,15 +776,10 @@ FileWindowInputCallback( file_mgr_rec->vertical_scroll_bar, file_mgr_rec->scroll_window)) { - String p; - - p = (String) XtMalloc(sizeof(char *)); - *p = (char) 0; - XtCallActionProc( file_mgr_rec->vertical_scroll_bar, - "PageUpOrLeft", new_event, - (char **) &p, 1 ); - XtFree(p); - } + String p = "up"; + XtCallActionProc( file_mgr_rec->vertical_scroll_bar, + "PageUpOrLeft", new_event,&p, 1 ); + } } break; case osfXK_PageDown: @@ -794,13 +789,9 @@ FileWindowInputCallback( file_mgr_rec->vertical_scroll_bar, file_mgr_rec->scroll_window)) { - String p; - - p = (String) XtMalloc(sizeof(char *)); - *p = (char)0; - XtCallActionProc( file_mgr_rec->vertical_scroll_bar, - "PageDownOrRight", new_event, &p, 1 ); - XtFree(p); + String p = "down"; + XtCallActionProc( file_mgr_rec->vertical_scroll_bar, + "PageDownOrRight", new_event, &p, 1 ); } } break; -- 2.25.1