RE: Combo box and GList



Just an idea... try emitting an "expose" event to force the combo to redraw
itself.  Hope this helps.



                                -- Stupid Genius

----------
From:         Marco Quezada[SMTP:mquezada nlxcorp com]
Sent:         Monday, December 11, 2000 1:40 PM
To:   GTK List
Subject:      Combo box and GList

Hi,

In my application I created a combo box which gets drawn when the
program starts up. The combo box will be holding variable names read
from a file but because the file has not been specified by the user the
combo is blank. After the user selects a file the code parses the data
and extracts a list of variable names which are appended to a GList type
in the following way:

TAMAL_GLBL->variable_index_list =
g_list_append(TAMAL_GLBL->variable_index_list, g_strdup(local_status));

Unfortunately even though the index list gets data appended to it, the
variable names do not display inside the combo box even after running:

while (gtk_events_pending())
{
     gtk_main_iteration();
}

Is there a way to get the variables to display after showing the combo
box ?

Thanks.

--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
mquezada nlxcorp com
703-234-2100 x1028
http://www.nlxcorp.com




_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





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