After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 143338 - [patch] Gtk::TableList::remove & Gtk::TableList::erase
[patch] Gtk::TableList::remove & Gtk::TableList::erase
Status: RESOLVED INVALID
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-05-28 16:37 UTC by Yueh-Wei Hu (­J©¨°¶)
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yueh-Wei Hu (­J©¨°¶) 2004-05-28 16:37:29 UTC
void TableList::remove(const_reference child)
{
  gtk_container_remove(GTK_CONTAINER(gparent_),
                       (GtkWidget*)(child.get_widget()->gobj()));
}                                                 /*  ^^^^^^^^^^^ need
'get_widget()' */

TableList::iterator TableList::erase(iterator position)
{
  //Check that it is a valid iterator, to a real item:
  if ( !position.node_|| (position == end()) )
    return end();

  //Get an iterator the the next item, to return:
  iterator next = position;
  next++;

  //Use GTK+ C function to remove it, by providing the GtkWidget*:
 
gtk_container_remove(GTK_CONTAINER(gparent_),(GtkWidget*)(position->get_widget()->gobj()));
                                                                               
                                           /*^^^^^^^^^^^^^^need 'get_widget()',
too */
  return next;
}
Comment 1 Murray Cumming 2004-05-29 07:46:52 UTC
What problem are you trying to solve?

Also, this is not a patch. Please see the patch instructions here:
http://www.gtkmm.org/bugs.shtml
Comment 2 Murray Cumming 2004-06-18 15:44:21 UTC
What problem are you trying to solve?
Comment 3 Murray Cumming 2004-06-30 20:53:15 UTC
I will close this bug report if you do not explain what problem you have found.
Please paste any relevant error messages here.
Comment 4 Murray Cumming 2004-07-08 16:09:05 UTC
Closing because
a) The bug report makes no sense.
b) There was no response.