On Wed, 2007-10-03 at 10:58 +0200, Iker Perez de Albeniz wrote:
> Hi,
>
> I haver created my own widget with some images+evenBox. What i want to
> do is to hide,minimize and maximize the window where the widget is
> contained..
>
> i have tried to do:
>
> Glib::RefPtr<Gdk::Window> window = this->get_window();
> Glib::RefPtr<Gdk::Window> window2 = window->get_parent();
> window2->hide();
>
> but it breaks with a "Segmentation Fault"
>
> With..
>
> Glib::RefPtr<Gdk::Window> window = get_root_window();
the root window cannot be closed (it does not belong to your
application, and in some cases does not even exist). i think you want
the top level parent window, not the root window.
read the docs on gtk_widget_get_toplevel()
--p
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list