Re: [gnomemm] Gtkmm nautilus property pages cleanup
- From: Roger Ferrer Ibáñez <rofi ya com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gnomemm-list <gnomemm-list gnome org>
- Subject: Re: [gnomemm] Gtkmm nautilus property pages cleanup
- Date: Fri, 09 Jul 2004 21:27:03 +0200
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�z 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�z
Correu: rofi ya com
Correu (FIB): b4270692 est fib upc es
Correu (Casa): roger pinchito com
Correu (JEDI): rogerf jedi upc es
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]