Re: [gtk-list] Re: gtk CVS snapshot



[Owen Taylor]

| Does it work OK if you change:
| 
|   GDK_Page_Up => GDK_Prior
|   GDK_Page_Down => GDK_Next

Yup, that did the trick.  Patch below.

| Doesn't Solaris have a POSIX 'test'?

Just tried 

	$ /bin/test ! `echo` && echo OK

on Solaris, SunOS, HP-UX, Digital UNIX, AIX, ULTRIX and IRIX --
everyone complained that there was a missing argument.

Linux (My RedHat system has no /bin/test, but a /usr/bin/test), GNU
and the bash builtin "test" claimed that the test was successful.



--- gtk+-cvs-971208/gtk/gtktext.c.~1~	Tue Dec  2 22:03:14 1997
+++ gtk+-cvs-971208/gtk/gtktext.c	Wed Dec 10 03:37:46 1997
@@ -1048,8 +1048,8 @@
 	    {
 	    case GDK_Home:      scroll_int (text, -text->vadj->value); break;
 	    case GDK_End:       scroll_int (text, +text->vadj->upper); break;
-	    case GDK_Page_Up:   scroll_int (text, -text->vadj->page_increment); break;
-	    case GDK_Page_Down: scroll_int (text, +text->vadj->page_increment); break;
+	    case GDK_Prior:     scroll_int (text, -text->vadj->page_increment); break;
+	    case GDK_Next:      scroll_int (text, +text->vadj->page_increment); break;
 	    case GDK_Up:        scroll_int (text, -KEY_SCROLL_PIXELS); break;
 	    case GDK_Down:      scroll_int (text, +KEY_SCROLL_PIXELS); break;
 	    default: break;
@@ -1063,8 +1063,8 @@
 	    {
 	    case GDK_Home:      move_cursor_buffer_ver (text, -1); break;
 	    case GDK_End:       move_cursor_buffer_ver (text, +1); break;
-	    case GDK_Page_Up:   move_cursor_page_ver (text, -1); break;
-	    case GDK_Page_Down: move_cursor_page_ver (text, +1); break;
+	    case GDK_Prior:     move_cursor_page_ver (text, -1); break;
+	    case GDK_Next:      move_cursor_page_ver (text, +1); break;
 	    case GDK_Up:        move_cursor_ver (text, -1); break;
 	    case GDK_Down:      move_cursor_ver (text, +1); break;
 	    case GDK_Left:      move_cursor_hor (text, -1); break;
--- gtk+-cvs-971208/gtk/gtkvscale.c.~1~	Wed Dec 10 03:01:40 1997
+++ gtk+-cvs-971208/gtk/gtkvscale.c	Wed Dec 10 03:01:48 1997
@@ -420,11 +420,11 @@
       return_val = TRUE;
       *scroll = GTK_SCROLL_STEP_FORWARD;
       break;
-    case GDK_Page_Up:
+    case GDK_Prior:
       return_val = TRUE;
       *scroll = GTK_SCROLL_PAGE_BACKWARD;
       break;
-    case GDK_Page_Down:
+    case GDK_Next:
       return_val = TRUE;
       *scroll = GTK_SCROLL_PAGE_FORWARD;
       break;
--- gtk+-cvs-971208/gtk/gtkvscrollbar.c.~1~	Mon Nov 24 23:37:48 1997
+++ gtk+-cvs-971208/gtk/gtkvscrollbar.c	Wed Dec 10 03:02:29 1997
@@ -368,14 +368,14 @@
       return_val = TRUE;
       *scroll = GTK_SCROLL_STEP_FORWARD;
       break;
-    case GDK_Page_Up:
+    case GDK_Prior:
       return_val = TRUE;
       if (key->state & GDK_CONTROL_MASK)
 	*pos = GTK_TROUGH_START;
       else
 	*scroll = GTK_SCROLL_PAGE_BACKWARD;
       break;
-    case GDK_Page_Down:
+    case GDK_Next:
       return_val = TRUE;
       if (key->state & GDK_CONTROL_MASK)
 	*pos = GTK_TROUGH_END;


-- 
Harald



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]