Commit c3579e97f60bd8a45afbb3710f7e8a1ce87449ba

Authored by perry.werneck@gmail.com
1 parent 39c72480
Exists in master

Incluindo suporte a funcao "Dup"

Showing 2 changed files with 5 additions and 4 deletions   Show diff stats
src/gtk2/actions1.c
@@ -152,10 +152,10 @@ @@ -152,10 +152,10 @@
152 return rc; 152 return rc;
153 } 153 }
154 154
155 - static void clear_and_call(GtkAction *action, int (*call)(H3270 *)) 155 + static void clear_and_call(GtkAction *action, int (*call)(void))
156 { 156 {
157 unselect(); 157 unselect();
158 - call(NULL); 158 + call();
159 } 159 }
160 160
161 LOCAL_EXTERN void gui_toogle_set_visible(enum GUI_TOGGLE id, gboolean visible) 161 LOCAL_EXTERN void gui_toogle_set_visible(enum GUI_TOGGLE id, gboolean visible)
@@ -577,6 +577,7 @@ @@ -577,6 +577,7 @@
577 { "SysREQ", G_CALLBACK(lib3270_sysreq) }, 577 { "SysREQ", G_CALLBACK(lib3270_sysreq) },
578 { "Attn", G_CALLBACK(lib3270_attn) }, 578 { "Attn", G_CALLBACK(lib3270_attn) },
579 { "Break", G_CALLBACK(lib3270_break) }, 579 { "Break", G_CALLBACK(lib3270_break) },
  580 + { "Dup", G_CALLBACK(lib3270_dup) },
580 581
581 { "FirstField", G_CALLBACK(lib3270_firstfield) }, 582 { "FirstField", G_CALLBACK(lib3270_firstfield) },
582 583
src/gtk2/mouse.c
@@ -924,7 +924,7 @@ @@ -924,7 +924,7 @@
924 SetSelectionMode(Toggled(RECTANGLE_SELECT) ? SELECT_MODE_RECTANGLE : SELECT_MODE_TEXT); 924 SetSelectionMode(Toggled(RECTANGLE_SELECT) ? SELECT_MODE_RECTANGLE : SELECT_MODE_TEXT);
925 } 925 }
926 926
927 - static void doSelect(H3270 *hSession, int (*call)(H3270 *hSession)) 927 + static void doSelect(H3270 *hSession, int (*call)(void))
928 { 928 {
929 int row; 929 int row;
930 int col; 930 int col;
@@ -937,7 +937,7 @@ @@ -937,7 +937,7 @@
937 startCol = endCol = (cursor_position % screen->cols); 937 startCol = endCol = (cursor_position % screen->cols);
938 } 938 }
939 939
940 - call(hSession); 940 + call();
941 941
942 row = cursor_position / screen->cols; 942 row = cursor_position / screen->cols;
943 col = cursor_position % screen->cols; 943 col = cursor_position % screen->cols;