【发布时间】:2017-08-21 14:27:31
【问题描述】:
我正在尝试将图像添加到带有标签的按钮,但图像不显示并且损坏的图像也不显示。
stop_button = gtk_button_new_with_label("stop");
image = gtk_image_new_from_file ("/home/cendit/Escritorio/index.jpeg");
gtk_button_set_image (GTK_BUTTON(stop_button),image);
我尝试了不同的路径“file:///home/cendit/Escritorio/index.jpeg”,但没有成功。
【问题讨论】:
标签: c++ gtk3 linux-mint