Commit c85e42c240255c874d86fae7dcb4610c02bfd5b8

Authored by Perry Werneck
1 parent f03b57f3
Exists in master and in 1 other branch develop

Fixing scroll action.

Showing 1 changed file with 31 additions and 27 deletions   Show diff stats
src/terminal/actions/scroll.c
@@ -73,33 +73,6 @@ gboolean v3270_scroll_event(GtkWidget *widget, GdkEventScroll *event) @@ -73,33 +73,6 @@ gboolean v3270_scroll_event(GtkWidget *widget, GdkEventScroll *event)
73 return TRUE; 73 return TRUE;
74 } 74 }
75 75
76 - // Has selection?  
77 - if(lib3270_has_selection(terminal->host))  
78 - {  
79 - switch(event->direction)  
80 - {  
81 - case GDK_SCROLL_UP:  
82 - lib3270_move_selection(terminal->host,LIB3270_DIR_UP);  
83 - return TRUE;  
84 -  
85 - case GDK_SCROLL_DOWN:  
86 - lib3270_move_selection(terminal->host,LIB3270_DIR_DOWN);  
87 - return TRUE;  
88 -  
89 - case GDK_SCROLL_LEFT:  
90 - lib3270_move_selection(terminal->host,LIB3270_DIR_LEFT);  
91 - return TRUE;  
92 -  
93 - case GDK_SCROLL_RIGHT:  
94 - lib3270_move_selection(terminal->host,LIB3270_DIR_RIGHT);  
95 - return TRUE;  
96 -  
97 - case GDK_SCROLL_SMOOTH:  
98 - return FALSE;  
99 - }  
100 -  
101 - }  
102 -  
103 // Check for fallbacks 76 // Check for fallbacks
104 size_t ix; 77 size_t ix;
105 78
@@ -138,6 +111,37 @@ gboolean v3270_scroll_event(GtkWidget *widget, GdkEventScroll *event) @@ -138,6 +111,37 @@ gboolean v3270_scroll_event(GtkWidget *widget, GdkEventScroll *event)
138 111
139 } 112 }
140 113
  114 + /*
  115 +
  116 + // Has selection?
  117 + if(lib3270_has_selection(terminal->host))
  118 + {
  119 + switch(event->direction)
  120 + {
  121 + case GDK_SCROLL_UP:
  122 + lib3270_move_selection(terminal->host,LIB3270_DIR_UP);
  123 + return TRUE;
  124 +
  125 + case GDK_SCROLL_DOWN:
  126 + lib3270_move_selection(terminal->host,LIB3270_DIR_DOWN);
  127 + return TRUE;
  128 +
  129 + case GDK_SCROLL_LEFT:
  130 + lib3270_move_selection(terminal->host,LIB3270_DIR_LEFT);
  131 + return TRUE;
  132 +
  133 + case GDK_SCROLL_RIGHT:
  134 + lib3270_move_selection(terminal->host,LIB3270_DIR_RIGHT);
  135 + return TRUE;
  136 +
  137 + case GDK_SCROLL_SMOOTH:
  138 + return FALSE;
  139 + }
  140 +
  141 + }
  142 +
  143 + */
  144 +
141 return FALSE; 145 return FALSE;
142 } 146 }
143 147