What is a GTK "render detail"?

I was having temporary difficulties setting the icon of a window in my C program to a stock icon, and I almost asked how to do it, but then I created the GdkPixbuf I needed like this: gtk_widget_render_icon(GTK_WIDGET(window),GTK_STOCK_CONVERT,-1,NULL) The last argument is described by the documentation as "render detail to pass to theme engine. [allow-none]" ([here][1]). Since I have no idea what an appropriate value for that might be, I set it to NULL and hoped it would work. It did work, but now I want to know why. What is this value supposed to be? Is there any possible repercussion if I leave it as NULL? [1]: https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-render-icon
What version of Gtk are you using?

以上就是What is a GTK "render detail"?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准