Re: Close root_window
- From: Paul Davis <paul linuxaudiosystems com>
- To: Iker Perez de Albeniz <ialbeniz cbt es>
- Cc: gtkmm-list gnome org
- Subject: Re: Close root_window
- Date: Wed, 03 Oct 2007 07:24:14 -0400
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]