Re: Wrapper for gdk_get_default_root_window()?
- From: Murray Cumming <murrayc murrayc com>
- To: Matt Fischer <mattfischer84 gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Wrapper for gdk_get_default_root_window()?
- Date: Fri, 19 Jan 2007 19:14:45 +0100
On Fri, 2007-01-19 at 12:02 -0600, Matt Fischer wrote:
> Hi all. I'm writing a program that needs to get access to the X root
> window, and I can't seem to find a Gtkmm wrapper for
> gdk_get_default_root_window().
True. A patch would be welcome, in bugzilla, to add it to future
versions of gtkmm. I guess it should be a static method of Gdk::Window.
> Doing the following works fine:
>
> Glib::RefPtr<Gdk::Window> root = Glib::wrap
> (gdk_get_default_root_window());
And do
root->reference()
because gdk_get_default_root_window() does not provide a reference.
gtkmm methods normal do that kind of thing for you.
> but that seems ugly. Is there some type of API that Gdkmm introduces
> around this call that I should be using instead, or is it simply not
> wrapped?
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]