Re: Gtkmm nautilus property pages cleanup
Roger Ferrer Ibáñez <[email protected]> Fri, 09 Jul 2004 21:27:03 +0200
| Newsgroups | gmane.comp.gnome.gnomemm |
|---|---|
| Message-ID | <[email protected]> |
Hello, > > If you don't find a solution, then it might be best to put the code > online somewhere. > I have set a small test case here. http://jedi.upc.es/~rogerf/test-component/ The makefile will create /tmp/test_factory. You will have to copy TestCase_Component.server into /usr/lib/bonobo/servers (or different if your gnome is installed in another prefix than /usr). Then open Nautilus and open "Properties" of a file. There will be a tab called "Test component" with a Button and a Label. To debug test_factory, first ensure there is no other test_factory running (kill it if necessary), and then /tmp/test_factory --oaf-activate-iid=OAFIID:TestCase_Component_Factory --oaf-ior-fd=47 and then check in nautilus the property page. Then close and the gtkmm warning about manage should appear. (test_factory:2439): gtkmm-WARNING **: gtkmm: Attempt to call Gtk::manage() on a Gtk::Window, but a Gtk::Window has no parent container to manage its lifetime. As you can see in the code MyControls inherits from Gtk::VBox. Thank you. Murray Cumming wrote: > On Fri, 2004-07-09 at 17:30 +0200, Roger Ferrer Ibáñez wrote: > > > Are you really really sure that it does not inherit from Gtk::Window? > > You can not manage Windows because manage() means "the child widget will > be destroyed its container is destroyed. But Windows are not child > widgets and they are not in any container." -- Roger Ferrer Ibáñez Correu: [email protected] Correu (FIB): [email protected] Correu (Casa): [email protected] Correu (JEDI): [email protected]