I have written a toolbar widget, compile has some problems. but when I running , there are many warnnings and assertion failures on console... My source code is : ------------------------------------------------------------------------------------- toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL,GTK_TOOLBAR_TEXT); gtk_container_set_border_width (GTK_CONTAINER(toolbar), 5); gtk_toolbar_set_space_size(GTK_TOOLBAR(toolbar), 5); gtk_container_add(GTK_CONTAINER(box), toolbar); style = gtk_widget_get_style(window); icon = gdk_pixmap_create_from_xpm_d (window->window, &mask, &style->bg[GTK_STAT E_NORMAL],(gchar **)computer_xpm); iconw = gtk_pixmap_new (icon, mask); item = gtk_toolbar_append_item (GTK_TOOLBAR(toolbar), "login", "login to server", "login", iconw, GTK_SIGNAL_FUNC(login), 0); gtk_toolbar_append_space (GTK_TOOLBAR(toolbar)); -------------------------------------------------------------------------------- But the warnning in compiling are these: -------------------------------------------------------------------------------- prefs_dialog/prefs_dialog.c:121: warning: passing arg 7 of `gtk_toolbar_append_i tem' makes pointer from integer without a cast -------------------------------------------------------------------------------- But the warnning in running are these: -------------------------------------------------------------------------------- Gdk-WARNING **: Creating pixmap from xpm with NULL window and colormap Gtk-CRITICAL **: file gtkbox.c: line 369 (gtk_box_pack_end): assertion `child->p arent == NULL' failed. -------------------------------------------------------------------------------- How can I get rid of them???????????? _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
