Commit 045bce44627e2106c7f080df84257f330b76ca4d

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

Adjustments in the paste_text api.

src/dialogs/load.c
... ... @@ -288,18 +288,18 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_
288 288 if(*error)
289 289 return;
290 290  
291   - gboolean next = lib3270_paste_text(
  291 + int remains = lib3270_paste_text(
292 292 v3270_get_session(dialog->terminal),
293 293 (unsigned char *) converted
294 294 ) ? TRUE : FALSE;
295 295  
296   - debug("next=%s",next ? "YES" : "NO");
  296 + debug("next=%s",remains > 0 ? "YES" : "NO");
297 297  
298 298 g_signal_emit(
299 299 dialog->terminal,
300 300 v3270_widget_signal[V3270_SIGNAL_PASTENEXT],
301 301 0,
302   - next
  302 + remains > 0
303 303 );
304 304  
305 305 }
... ...
src/selection/text.c
... ... @@ -208,7 +208,7 @@ LIB3270_EXPORT void v3270_input_text(GtkWidget *widget, const gchar *text, const
208 208 }
209 209  
210 210 // Do paste.
211   - gboolean next = lib3270_paste_text(
  211 + int remains = lib3270_paste_text(
212 212 v3270_get_session(widget),
213 213 (unsigned char *) buffer
214 214 ) ? TRUE : FALSE;
... ... @@ -217,7 +217,7 @@ LIB3270_EXPORT void v3270_input_text(GtkWidget *widget, const gchar *text, const
217 217 widget,
218 218 v3270_widget_signal[V3270_SIGNAL_PASTENEXT],
219 219 0,
220   - next
  220 + remains > 0
221 221 );
222 222  
223 223 }
... ...
v3270.cbp
... ... @@ -66,6 +66,9 @@
66 66 <Unit filename="src/dialogs/linux/select.c">
67 67 <Option compilerVar="CC" />
68 68 </Unit>
  69 + <Unit filename="src/dialogs/load.c">
  70 + <Option compilerVar="CC" />
  71 + </Unit>
69 72 <Unit filename="src/dialogs/popups.c">
70 73 <Option compilerVar="CC" />
71 74 </Unit>
... ...