(no subject)
- From: "Charles Sanders" <sanders_charles hotmail com>
- To: gtk-app-devel-list gnome org
- Subject: (no subject)
- Date: Mon, 08 Oct 2001 22:48:56 +0000
Im having trouble inserting items into list from a callback. Here is code
that is failing.
void
on_install_search_btn_clicked (GtkButton *button,
GtkWidget* LIST)
{
GList *current_list = NULL;
GtkWidget* temp;
extern struct search *search_struct;
GtkWidget* nopacks_dialog;
gchar* search_string =
gtk_entry_get_text(GTK_ENTRY(search_struct->ENTRY));
temp = gtk_list_item_new_with_label("DAMNIT!!");
gtk_widget_show(temp);
current_list = g_list_prepend(current_list, temp);
gtk_list_append_items(GTK_LIST(LIST), current_list);
if (search_for_package(search_string, current_list, 100) != 0)
{
nopacks_dialog = create_nopacks_dialog ();
gtk_widget_show (nopacks_dialog);
}
else
{
if (current_list == NULL)
printf("GOD HELP ME");
gtk_list_append_items(GTK_LIST(LIST), current_list);
printf("SUCCESS");
}
}
and is failing with Segmentqation Fault ...
Gtk-CRITICAL **: file gtkwidget.c: line 3353 (gtk_widget_set_parent):
assertion `widget->parent == NULL' failed.
Program received signal SIGINT, Interrupt.
0x400ff3a0 in gtk_widget_ensure_style () from /usr/lib/libgtk-1.2.so.0
(gdb) back
#0 0x400ff3a0 in gtk_widget_ensure_style () from /usr/lib/libgtk-1.2.so.0
#1 0x4009ff2f in gtk_list_item_size_request () from
/usr/lib/libgtk-1.2.so.0
#2 0x400a25e1 in gtk_marshal_NONE__POINTER () from /usr/lib/libgtk-1.2.so.0
I ve been working on this forever, please help, is there something
elementray im missing!?!?!?!?
Charles
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]