How to add an image to a button with GTK
问题 I am trying to add an image to a button with label, but the image doesn't show and the broken image doesn't display either. 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); I tried a different path "file:///home/cendit/Escritorio/index.jpeg" but it was not successful. 回答1: Images inside buttons are not visible by default, as we transitioned from GTK+ 2.x to 3.x. Sadly,