[Glade-users] gtk_entry_append_text



What happens if I keep using gtk_entry_append_text on the same GtkEntry?
I noticed that text_size keeps getting reset to a larger value but I am
sure their must be some limit.

What should I do if I need to keep issuing gtk_entry_append_text on one
particular GtkEntry? (I am implementing some scrolling text).

Following is what the thread looks like:

void *display_string()
{
   GtkEntry *entryOnly;

   gint j = 0;

   int oneChar;
   gchar text[5];

   strcpy(text,"text ");

   entryOnly = GTK_ENTRY(entry1);

   for (;;)
   {
      usleep(1000);

      oneChar = text[j];

      gdk_threads_enter();

      gtk_entry_append_text(GTK_ENTRY(entry1), (char *) &oneChar);

      printf("entryOnly text_length is %d\n",entryOnly->text_length);
      printf("entryOnly text_size is %d\n",entryOnly->text_size);
      printf("entryOnly text_max_length
%d\n",entryOnly->text_max_length);

      gdk_threads_leave();

      if (j >=5)
      {
         j = 0;
      }
      else
      {
         j++;
      }
   }







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