我想在我的应用程序的颜色按钮中使用 alpha 值 - https://github.com/satya164/elegance-colors
目前我正在使用colorbutton.set_use_alpha (true);
,如http://www.valadoc.org/#!api=gtk+-3.0/Gtk.ColorButton中所述
但是,在编译时,我收到警告说,
/home/satya/Workspace/elegance-colors/elegance-colors-prefs.vala.c:4706:2: warning: ‘gtk_color_button_set_use_alpha’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkcolorbutton.h:95): Use 'gtk_color_chooser_set_use_alpha' instead [-Wdeprecated-declarations]
valadoc 网站上的代码示例已经过时,gnome 网站上的示例不使用 alpha。谁能帮我修复警告信息?
我正在使用 GTK 3.8 和 Vala 0.20.1。