From 1ffa3063b481bb05dfe0ceb5d30ba5283c6c6b22 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 28 May 2013 19:46:03 +0000 Subject: [PATCH] Pequeno ajuste na estrutura do widget --- mouse.c | 4 ++-- private.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mouse.c b/mouse.c index 4376f99..8f81bc9 100644 --- a/mouse.c +++ b/mouse.c @@ -76,7 +76,7 @@ static void single_click(v3270 *widget, int baddr) default: // Move selected area trace("%s: default action",__FUNCTION__); - widget->selection_addr = baddr; + widget->selection.baddr = baddr; widget->moving = 1; } @@ -306,7 +306,7 @@ gboolean v3270_motion_notify_event(GtkWidget *widget, GdkEventMotion *event) } if(terminal->moving) // Move selected area { - terminal->selection_addr = lib3270_drag_selection(terminal->host,terminal->pointer,terminal->selection_addr,baddr); + terminal->selection.baddr = lib3270_drag_selection(terminal->host,terminal->pointer,terminal->selection.baddr,baddr); } else { diff --git a/private.h b/private.h index 28ef92d..e06dd8b 100644 --- a/private.h +++ b/private.h @@ -155,12 +155,12 @@ G_BEGIN_DECLS struct { - char * text; /**< Clipboard contents (lib3270 charset) */ + char * text; /**< Clipboard contents (lib3270 charset) */ + int baddr; /**< Selection addr */ } selection; LIB3270_CURSOR pointer_id; unsigned char pointer; /**< Mouse pointer ID */ - int selection_addr; /**< Selection addr */ V3270_OIA_FIELD selected_field; /**< Clicked OIA field */ -- libgit2 0.21.2