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/libgdkmm-2.4.so.1
(gdb) bt
#0  0xb785c686 in Gdk::Window::set_cursor ()
from /usr/lib/libgdkmm-2.4.so.1 #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/libglibmm-2.4.so.1 #4  0xb7387c6d in
g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0

So how do I change the mouse cursor?

regards
Andreas
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

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.

Bob



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