Cursor is different after set by gtk





   $self->{busycur} = Gtk2::Gdk::Cursor->new('GDK_WATCH');
   $self->{normcur} = Gtk2::Gdk::Cursor->new('GDK_LEFT_PTR');
   $self->{rootwin} = Gtk2::Gdk->get_default_root_window();

   $self->{rootwin}->set_cursor($self->{busycur});
   $self->redraw();
   ## Do some task
   ...
   $self->{rootwin}->set_cursor($self->{normcur});
   ...
===

After setting cursor with GDK_LEFT_PTR, the cursor is different than previous cursor. It turn into black left_pointer which should be white left_pointer. What could be the problem?


--

--beast




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