how can i change the shape mouse cursor in gWidgets RGtk2?

后端 未结 1 910
感情败类
感情败类 2021-01-21 08:32

In a Drawing Area of ggraphics in gWidgets changes the mouse cursor to \"GDK_TCROSS\",but i want the same mouse cursor of the gwindow \"GDK_LEFT_PTR\":

 librar         


        
1条回答
  •  [愿得一人]
    2021-01-21 09:04

    gtkWidgetModifyCursor modifies the colors of the cursor. You need to set the cursor through gdkWindowSetCursor. For that you need to grab the window associated with the widget:

    getToolkitWidget(g)$getWindow()$setCursor(c)
    

    0 讨论(0)
提交回复
热议问题