How do I get the gdk window for a gtk window in C?

前端 未结 1 810
说谎
说谎 2021-01-11 10:33

I\'m trying to set the cursor to a watch. The problem is that gdk_set_cursor() requires a gdk_window. How do I get the gdk_window of a gtk_window in C? I\'ve seen examples f

相关标签:
1条回答
  • 2021-01-11 11:24
    GdkWindow *gdk_window = gtk_widget_get_window(GTK_WIDGET(gtk_window));
    

    or, pre GTK 2.14, but now disallowed:

    GdkWindow *gdk_window = gtk_window->window;
    
    0 讨论(0)
提交回复
热议问题