From: simon Date: Mon, 14 Oct 2002 10:14:12 +0000 (+0000) Subject: Don't forget to call term_paste() when we get the chance, or big X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/417d19722e3535ab06bfb59d8e570f5e053489eb Don't forget to call term_paste() when we get the chance, or big pastes won't go through. (Not sure whether I should remove this weird behaviour completely for pterm. It's a bit bizarre.) git-svn-id: svn://svn.tartarus.org/sgt/putty@2047 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/pterm.c b/unix/pterm.c index 5bd8341f..b18fc1f7 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -774,6 +774,13 @@ gint timer_func(gpointer data) return TRUE; } +gint idle_func(gpointer data) +{ + /* struct gui_data *inst = (struct gui_data *)data; */ + term_paste(); + return TRUE; +} + void pty_input_func(gpointer data, gint sourcefd, GdkInputCondition condition) { /* struct gui_data *inst = (struct gui_data *)data; */ @@ -1302,6 +1309,7 @@ int main(int argc, char **argv) GTK_SIGNAL_FUNC(selection_clear), inst); gtk_signal_connect(GTK_OBJECT(inst->sbar_adjust), "value_changed", GTK_SIGNAL_FUNC(scrollbar_moved), inst); + gtk_idle_add(idle_func, inst); gtk_timeout_add(20, timer_func, inst); gdk_input_add(pty_master_fd, GDK_INPUT_READ, pty_input_func, inst); gtk_widget_add_events(GTK_WIDGET(inst->area),