Commit 045bce44627e2106c7f080df84257f330b76ca4d
1 parent
dfc59268
Exists in
master
and in
1 other branch
Adjustments in the paste_text api.
Showing
3 changed files
with
8 additions
and
5 deletions
Show diff stats
src/dialogs/load.c
@@ -288,18 +288,18 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_ | @@ -288,18 +288,18 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_ | ||
288 | if(*error) | 288 | if(*error) |
289 | return; | 289 | return; |
290 | 290 | ||
291 | - gboolean next = lib3270_paste_text( | 291 | + int remains = lib3270_paste_text( |
292 | v3270_get_session(dialog->terminal), | 292 | v3270_get_session(dialog->terminal), |
293 | (unsigned char *) converted | 293 | (unsigned char *) converted |
294 | ) ? TRUE : FALSE; | 294 | ) ? TRUE : FALSE; |
295 | 295 | ||
296 | - debug("next=%s",next ? "YES" : "NO"); | 296 | + debug("next=%s",remains > 0 ? "YES" : "NO"); |
297 | 297 | ||
298 | g_signal_emit( | 298 | g_signal_emit( |
299 | dialog->terminal, | 299 | dialog->terminal, |
300 | v3270_widget_signal[V3270_SIGNAL_PASTENEXT], | 300 | v3270_widget_signal[V3270_SIGNAL_PASTENEXT], |
301 | 0, | 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,7 +208,7 @@ LIB3270_EXPORT void v3270_input_text(GtkWidget *widget, const gchar *text, const | ||
208 | } | 208 | } |
209 | 209 | ||
210 | // Do paste. | 210 | // Do paste. |
211 | - gboolean next = lib3270_paste_text( | 211 | + int remains = lib3270_paste_text( |
212 | v3270_get_session(widget), | 212 | v3270_get_session(widget), |
213 | (unsigned char *) buffer | 213 | (unsigned char *) buffer |
214 | ) ? TRUE : FALSE; | 214 | ) ? TRUE : FALSE; |
@@ -217,7 +217,7 @@ LIB3270_EXPORT void v3270_input_text(GtkWidget *widget, const gchar *text, const | @@ -217,7 +217,7 @@ LIB3270_EXPORT void v3270_input_text(GtkWidget *widget, const gchar *text, const | ||
217 | widget, | 217 | widget, |
218 | v3270_widget_signal[V3270_SIGNAL_PASTENEXT], | 218 | v3270_widget_signal[V3270_SIGNAL_PASTENEXT], |
219 | 0, | 219 | 0, |
220 | - next | 220 | + remains > 0 |
221 | ); | 221 | ); |
222 | 222 | ||
223 | } | 223 | } |
v3270.cbp
@@ -66,6 +66,9 @@ | @@ -66,6 +66,9 @@ | ||
66 | <Unit filename="src/dialogs/linux/select.c"> | 66 | <Unit filename="src/dialogs/linux/select.c"> |
67 | <Option compilerVar="CC" /> | 67 | <Option compilerVar="CC" /> |
68 | </Unit> | 68 | </Unit> |
69 | + <Unit filename="src/dialogs/load.c"> | ||
70 | + <Option compilerVar="CC" /> | ||
71 | + </Unit> | ||
69 | <Unit filename="src/dialogs/popups.c"> | 72 | <Unit filename="src/dialogs/popups.c"> |
70 | <Option compilerVar="CC" /> | 73 | <Option compilerVar="CC" /> |
71 | </Unit> | 74 | </Unit> |