Re: gtk_table and undefined behaviour?



On Fri, 12 Jul 2002 20:17:13 -0700
Evan Martin <martine cs washington edu> wrote:

  gtk_table_attach_defaults(GTK_TABLE(table), trans_entry[counter],
                                                    1, 2, counter, (counter+1));

Where are trans_entry[]'s elements created?

Ah, forgot to insert the line in the mail, they are created in the for-loop:

for(language_node = language_file->parent->children;
        language_node != NULL; language_node = language_node->next){
     if(language_node->name ||
        g_strcasecmp(language_node->name, "language") == 0){
       _no += 1;
  
      label_text = xmlGetProp(language_node, "id");
       printf(" %s\n", label_text); /* debug stuff */
       trans_label[_no] = gtk_label_new(label_text); 
       trans_entry[_no] = gtk_entry_new();
   }
}

Regards
Marcus

Attachment: pgpFYbjUJC7Nr.pgp
Description: PGP signature



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