canvas group question...



Will doing a 

    gtk_object_destroy( GTK_OBJECT (someGnomeCanvasGroup));

walk through and destroy all the items contained in a 
canvas group, or do I need to do something like:

  listItem = g_list_first( myGroup->item_list);
  while(listItem) {
      g_list_remove_link(myGroup->item_list, listItem);
      gtk_object_destroy( GTK_OBJECT (listItem));
      g_list_free_1( listItem);
      listItem = g_list_first( myGroup->item_list);
  }

?
 
 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--



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