Index: shell/ev-view.c
===================================================================
RCS file: /cvs/gnome/evince/shell/ev-view.c,v
retrieving revision 1.188
diff -u -3 -p -r1.188 ev-view.c
--- shell/ev-view.c	7 Feb 2006 20:09:23 -0000	1.188
+++ shell/ev-view.c	15 Feb 2006 13:00:09 -0000
@@ -98,6 +98,15 @@ typedef enum {
 
 #define SCROLL_TIME 150
 
+#ifdef USE_HILDON
+#define SCROLL_BUTTON 1
+#define SELECT_BUTTON 2
+#else
+#define SCROLL_BUTTON 2
+#define SELECT_BUTTON 1
+#endif
+
+
 /*** Scrolling ***/
 static void       scroll_to_current_page 		     (EvView *view,
 							      GtkOrientation orientation);
@@ -1678,7 +1687,7 @@ ev_view_button_press_event (GtkWidget   
 	view->selection_info.in_drag = FALSE;
 	
 	switch (event->button) {
-	        case 1:
+	        case SELECT_BUTTON:
 			if (view->selection_info.selections) {
 				if (location_in_selected_text (view,
 							       event->x + view->scroll_x,
@@ -1695,7 +1704,7 @@ ev_view_button_press_event (GtkWidget   
 			view->selection_info.start.y = event->y + view->scroll_y;
 			
 			return TRUE;
-		case 2:
+		case SCROLL_BUTTON:
 			/* use root coordinates as reference point because
 			 * scrolling changes window relative coordinates */
 			view->drag_info.start.x = event->x_root;
@@ -1823,7 +1832,7 @@ ev_view_motion_notify_event (GtkWidget  
 	/* For the Evince 0.4.x release, we limit selection to un-rotated
 	 * documents only.
 	 */
-	if (view->pressed_button == 1 && view->rotation == 0) {
+	if (view->pressed_button == SELECT_BUTTON && view->rotation == 0) {
 
 		/* Schedule timeout to scroll during selection and additionally 
 		 * scroll once to allow arbitrary speed. */
@@ -1845,7 +1854,7 @@ ev_view_motion_notify_event (GtkWidget  
 			view->selection_update_id = g_idle_add ((GSourceFunc)selection_update_idle_cb, view);
 
 		return TRUE;
-	} else if (view->pressed_button == 2) {
+	} else if (view->pressed_button == SCROLL_BUTTON) {
 		if (!view->drag_info.in_drag) {
 			gboolean start;
 
@@ -1900,7 +1909,7 @@ ev_view_button_release_event (GtkWidget 
 	EvView *view = EV_VIEW (widget);
 	EvLink *link;
 
-	if (view->pressed_button == 2) {
+	if (view->pressed_button == SCROLL_BUTTON) {
 		ev_view_set_cursor (view, EV_VIEW_CURSOR_NORMAL);
 	}
 
