Commit 1ffa3063b481bb05dfe0ceb5d30ba5283c6c6b22

Authored by perry.werneck@gmail.com
1 parent 83cb7db3
Exists in master and in 1 other branch develop

Pequeno ajuste na estrutura do widget

Showing 2 changed files with 4 additions and 4 deletions   Show diff stats
mouse.c
... ... @@ -76,7 +76,7 @@ static void single_click(v3270 *widget, int baddr)
76 76 default:
77 77 // Move selected area
78 78 trace("%s: default action",__FUNCTION__);
79   - widget->selection_addr = baddr;
  79 + widget->selection.baddr = baddr;
80 80 widget->moving = 1;
81 81 }
82 82  
... ... @@ -306,7 +306,7 @@ gboolean v3270_motion_notify_event(GtkWidget *widget, GdkEventMotion *event)
306 306 }
307 307 if(terminal->moving) // Move selected area
308 308 {
309   - terminal->selection_addr = lib3270_drag_selection(terminal->host,terminal->pointer,terminal->selection_addr,baddr);
  309 + terminal->selection.baddr = lib3270_drag_selection(terminal->host,terminal->pointer,terminal->selection.baddr,baddr);
310 310 }
311 311 else
312 312 {
... ...
private.h
... ... @@ -155,12 +155,12 @@ G_BEGIN_DECLS
155 155  
156 156 struct
157 157 {
158   - char * text; /**< Clipboard contents (lib3270 charset) */
  158 + char * text; /**< Clipboard contents (lib3270 charset) */
  159 + int baddr; /**< Selection addr */
159 160 } selection;
160 161  
161 162 LIB3270_CURSOR pointer_id;
162 163 unsigned char pointer; /**< Mouse pointer ID */
163   - int selection_addr; /**< Selection addr */
164 164  
165 165 V3270_OIA_FIELD selected_field; /**< Clicked OIA field */
166 166  
... ...