Re: Change cursor

Andreas Volz wrote:

Am Thu, 27 Oct 2005 13:14:02 -0300 (ART) schrieb Marcelo David:

I think gdk_window is a pointer, then you need to use
gdk_window->set_cursor(), not gdk_window.set_cursor().

Oh, yes. Now it compiles, but it segfault at this line:

0xb785c686 in Gdk::Window::set_cursor () from /usr/lib/
(gdb) bt
#0  0xb785c686 in Gdk::Window::set_cursor ()
from /usr/lib/ #1  0x08074473 in
MeasureDialog::on_button_measure_apply_activate (this=0x855c240) at
refptr.h:155 #2  0x08074ec8 in
sigc::adaptor_functor<sigc::bound_mem_functor0<void, MeasureDialog>
::operator() (this=0x855c958) at limit_reference.h:96 #3  0xb74d7d7e
in Glib::SignalProxyNormal::slot0_void_callback ()
from /usr/lib/ #4  0xb7387c6d in
g_cclosure_marshal_VOID__VOID () from /usr/lib/

So how do I change the mouse cursor?

gtkmm-list mailing list
gtkmm-list gnome org

My bet is that your code is run before your window has been realized. Hence the Gdk::Window pointer returned by get_frame() is no good.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]