Re: deletion of Gtk::MenuItem



When I run your program with gtk+ and gtmm version 3.2.0 (included in Ubuntu 11.10), the result is
  construct: New
  construct: File
  destruct: New

"File" is not deleted, as you say.

But when I use the versions gtk+ and gtkmm (and the packages that they depend on) that I fetched from the git repository a few days ago, the result is
  construct: New
  construct: File
  destruct: New
  destruct: File

Probably you have hit a bug that has been fixed recently.

Kjell

2012-01-10 17:12, Marco Meier skrev:
Hi,

i created a simple MenuBar with submenus. While playing around i noticed
that when a MenuItem in the MenuBar has a submenu, the MenuItem is not
deleted, although it is managed by the MenuBar (see attached file).
Removing line 43 (file_menuitem->set_submenu()) changes that. Is this
behavior intended or did i hit a bug? If intended, how can i ensure the
deletion of every MenuItem without remembering every single pointer?

Thanks,
Marco


_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



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