Re: gtk_entry_set_text() and very fast updates



>sql_refresh()
>[...]
>   if(!conn) {
>      auto_push_statusbar("You are not linked to the SQL server -- Going
>online");
>      sql_connect();
>      if(!conn) {
>         auto_push_statusbar("Unable to link to SQL server");
>         return;
>      }
>      else
>         auto_push_statusbar("Connected to SQL server, refreshing every...");
>
>         timeoutid=gtk_timeout_add(200, (void *)&auto_refresh, NULL);
>   }
>[...]
>    gtk_entry_set_text()
>}
>
>auto_refresh()
>{
>   GtkButton *dummy1=NULL;
>   gpointer dummy2=0;
>   sql_refresh(dummy1, dummy2);
>   return;
>}

This code doesn't make a lot of sense to me. What are you trying to
accomplish ? When and how do you cancel the timeout function, and why
doesn't it return FALSE or TRUE (or is that because you didn't
actually cut-n-paste) ?

--p




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]