Re: Howto change a cursor for Gtk::Window ?
- From: Murray Cumming <murrayc murrayc com>
- To: Clive Hobson <clivetown-dev01 yahoo com au>
- Cc: gtkmm-list gnome org
- Subject: Re: Howto change a cursor for Gtk::Window ?
- Date: Thu, 12 Jun 2008 15:40:46 +0200
On Thu, 2008-06-12 at 06:11 -0700, Clive Hobson wrote:
> Karl,
>
> Gtk::Window::get_window() will return a null reference if the
> Gtk::Window widget hasn't got a Gdk::Window at the time. I think this
> is the problem you are experiencing. Some widgets don't have their
> own Gdk::Window ever (look at the reference doco for Gtk::Misc). A
> widget must be "realize"d to have a Gdk::Window.
[snip]
If Gtk::Window::get_window() returns a null RefPtr (meaning the widget
was not yet realized) then there's probably no point in changing the
cursor over your widget, because your widget is not even visible.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]