add elements to gtkcombo

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

 



Hi,

I'm trying to add elements to gtkcombo... but only the last element
than I added to g_list is showed in gtkcombo, is created a exactly
number of elements, but all of them is the last element that I added..


gint pos, i, j, colunas;

            for(i = 0; i < j; i++)
            {
                pos = 0;
                for(colunas = 0; colunas < 99; colunas++)
                {
                    id[colunas] = 0;
                }

                fgets(id,99,a);
                for(colunas = 0; colunas < 99; colunas++)
                {
                    if(id[colunas] == 10)
                    {
                        pos = colunas;
                        id[colunas] = 0;
                    }
                    if(colunas > pos && pos != 0)
                    {
                        id[colunas] = 0;
                    }

                    for(colunas = 0; colunas < 99; colunas++)
                    {
                        if(id[colunas] == 10)
                        {
                            id[colunas] = 0;
                        }
                       // g_print("\n%c = %d",id[colunas],id[colunas]);
                    }
                }
                items = g_list_append(items, id);
            }
            gtk_combo_set_popdown_strings(GTK_COMBO(windowMainProjectSelection),
items);


any idea?

-- 
Abraço,
Frederico Schardong,
SOLIS - O lado livre da tecnologia
www.solis.coop.br
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux